You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: 01-path-basics/103-kubernetes-concepts/readme.adoc
+11-10Lines changed: 11 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,27 +1,28 @@
1
1
= Kubernetes Concepts
2
2
:toc:
3
3
:icons:
4
+
:linkattrs:
4
5
:linkcss:
5
6
:imagesdir: ../../resources/images
6
7
7
-
Kubernetes has a number of abstractions that map to API objects. These Kubernetes API Objects can be used to describe your cluster's desired state which will include info such as applications and workloads running, replicas, container images, networking resources and more. This section explains the key concepts relevant from an application developer perspecitve.
8
+
== Kubernetes API and CLI
9
+
10
+
Now that we have a cluster up and running we can start exploring the Kubernetes CLI via the `kubectl` (pronounced "cube control") command.
11
+
12
+
`kubectl` interacts with the Kubernetes API Server, which runs on the master nodes in the cluster.
13
+
14
+
Kubernetes as a platform has a number of abstractions that map to API objects. These Kubernetes API Objects can be used to describe your cluster's desired state - including information such as applications and workloads running, container images, networking resources, and more. This section explains the most-used Kubernetes API concepts and how to interact with them via `kubectl`.
8
15
9
16
== Prerequisites
10
17
11
-
This chapter uses a cluster with 3 master nodes and 5 worker nodes as described link:../102-your-first-cluster#multi-master-multi-node-multi-az-gossip-based-cluster[here].
18
+
This chapter uses a cluster with 3 master nodes and 5 worker nodes as described link:../102-your-first-cluster#multi-master[here].
12
19
13
20
All configuration files for this chapter are in the `01-path-basics/103-kubernetes-concepts/templates` directory.
14
21
Please be sure to `cd` into that directory before running the commands below.
15
22
16
23
$ cd 01-path-basics/103-kubernetes-concepts/templates
17
24
18
-
== Kubernetes basic commands
19
-
20
-
Now that we have a cluster up and running we can start issuing some basic commands and deploying some simple resources.
21
-
22
-
In this part we will familiarize ourselves with the `kubectl` CLI tool and basic Kubernetes commands. We will first deploy a basic NGiNX pod and execute some commands to help you gain comfort with the Kubernetes environment from an end-user perspective. This helps get developers up and running - taking advantage of the Kubernetes application deployment capabilities - without having to worry about the infrastructure related complexities.
23
-
24
-
=== Display Nodes
25
+
== Display Nodes
25
26
26
27
This command will show all the nodes available in your kubernetes cluster:
27
28
@@ -39,7 +40,7 @@ It will show an output similar to:
If you do not see this output, or receive an error, please ensure that you've followed the steps link:../102-your-first-cluster#multi-master-multi-node-multi-az-gossip-based-cluster[here] and have a validated cluster.
43
+
If you do not see this output, or receive an error, please ensure that you've followed the steps link:../102-your-first-cluster#multi-master[here] and have a validated cluster.
0 commit comments