From ee1361dc0db1932e4f8f8e52925efbd17f96893e Mon Sep 17 00:00:00 2001 From: joostas Date: Mon, 5 Apr 2021 20:48:16 +0300 Subject: [PATCH] [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 ``` --- content/en/docs/reference/kubectl/docker-cli-to-kubectl.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/en/docs/reference/kubectl/docker-cli-to-kubectl.md b/content/en/docs/reference/kubectl/docker-cli-to-kubectl.md index ac7b7a49f92cf..9c148702b543f 100644 --- a/content/en/docs/reference/kubectl/docker-cli-to-kubectl.md +++ b/content/en/docs/reference/kubectl/docker-cli-to-kubectl.md @@ -265,7 +265,7 @@ nginx-app 1/1 1 1 2m ``` ```shell -kubectl get po -l run=nginx-app +kubectl get po -l app=nginx-app ``` ``` NAME READY STATUS RESTARTS AGE @@ -279,7 +279,7 @@ deployment "nginx-app" deleted ``` ```shell -kubectl get po -l run=nginx-app +kubectl get po -l app=nginx-app # Return nothing ```