File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
content/en/docs/tutorials Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -90,14 +90,17 @@ tutorial has only one Container. A Kubernetes
90
90
Pod and restarts the Pod' s Container if it terminates. Deployments are the
91
91
recommended way to manage the creation and scaling of Pods.
92
92
93
+ 1. Katacoda environment only: At the top of the terminal pane, click the plus sign, and then click open a new terminal.
94
+
93
95
1. Use the ` kubectl create` command to create a Deployment that manages a Pod. The
94
96
Pod runs a Container based on the provided Docker image.
97
+
95
98
96
99
` ` ` shell
97
100
kubectl create deployment hello-node --image=registry.k8s.io/e2e-test-images/agnhost:2.39 -- /agnhost netexec --http-port=8080
98
101
` ` `
99
102
100
- 2 . View the Deployment:
103
+ 1 . View the Deployment:
101
104
102
105
` ` ` shell
103
106
kubectl get deployments
@@ -110,7 +113,7 @@ Pod runs a Container based on the provided Docker image.
110
113
hello-node 1/1 1 1 1m
111
114
` ` `
112
115
113
- 3 . View the Pod:
116
+ 1 . View the Pod:
114
117
115
118
` ` ` shell
116
119
kubectl get pods
@@ -123,13 +126,13 @@ Pod runs a Container based on the provided Docker image.
123
126
hello-node-5f76cf6ccf-br9b5 1/1 Running 0 1m
124
127
` ` `
125
128
126
- 4 . View cluster events:
129
+ 1 . View cluster events:
127
130
128
131
` ` ` shell
129
132
kubectl get events
130
133
` ` `
131
134
132
- 5 . View the ` kubectl` configuration:
135
+ 1 . View the ` kubectl` configuration:
133
136
134
137
` ` ` shell
135
138
kubectl config view
You can’t perform that action at this time.
0 commit comments