Skip to content

Commit ee1361d

Browse files
committed
[en] Fix label selector in "kubectl for Docker Users"
Before ```sh kubectl get po -l run=nginx-app No resources found in default namespace. ``` Because: ```sh kubectl get po --show-labels NAME READY STATUS RESTARTS AGE LABELS nginx-app-58cfd4c468-jx6qp 1/1 Running 0 17m app=nginx-app,pod-template-hash=58cfd4c468 ``` After: ```sh kubectl get po -l app=nginx-app NAME READY STATUS RESTARTS AGE nginx-app-58cfd4c468-jx6qp 1/1 Running 0 18m ```
1 parent e751578 commit ee1361d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

content/en/docs/reference/kubectl/docker-cli-to-kubectl.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ nginx-app 1/1 1 1 2m
265265
```
266266

267267
```shell
268-
kubectl get po -l run=nginx-app
268+
kubectl get po -l app=nginx-app
269269
```
270270
```
271271
NAME READY STATUS RESTARTS AGE
@@ -279,7 +279,7 @@ deployment "nginx-app" deleted
279279
```
280280

281281
```shell
282-
kubectl get po -l run=nginx-app
282+
kubectl get po -l app=nginx-app
283283
# Return nothing
284284
```
285285

0 commit comments

Comments
 (0)