Skip to content

Commit 4b60bd0

Browse files
authored
Merge pull request #42902 from zhangzhiqiangcs/fix-static-pod-output-pod-name
Fix: static pod example pod name
2 parents 29eab1a + 63f28c3 commit 4b60bd0

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

content/en/docs/tasks/configure-pod-container/static-pod.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -189,8 +189,8 @@ You can see the mirror Pod on the API server:
189189
kubectl get pods
190190
```
191191
```
192-
NAME READY STATUS RESTARTS AGE
193-
static-web 1/1 Running 0 2m
192+
NAME READY STATUS RESTARTS AGE
193+
static-web-my-node1 1/1 Running 0 2m
194194
```
195195
196196
{{< note >}}
@@ -206,18 +206,18 @@ If you try to use `kubectl` to delete the mirror Pod from the API server,
206206
the kubelet _doesn't_ remove the static Pod:
207207
208208
```shell
209-
kubectl delete pod static-web
209+
kubectl delete pod static-web-my-node1
210210
```
211211
```
212-
pod "static-web" deleted
212+
pod "static-web-my-node1" deleted
213213
```
214214
You can see that the Pod is still running:
215215
```shell
216216
kubectl get pods
217217
```
218218
```
219-
NAME READY STATUS RESTARTS AGE
220-
static-web 1/1 Running 0 4s
219+
NAME READY STATUS RESTARTS AGE
220+
static-web-my-node1 1/1 Running 0 4s
221221
```
222222
223223
Back on your node where the kubelet is running, you can try to stop the container manually.

0 commit comments

Comments
 (0)