CKAD-exercises icon indicating copy to clipboard operation
CKAD-exercises copied to clipboard

Update c.pod_design.md

Open jfullam opened this issue 4 years ago • 1 comments

The option to show specific labels on a get command is no -L and not -l

jfullam avatar Sep 13 '20 13:09 jfullam

Differences in output

➜ k get pods -l app
NAME     READY   STATUS    RESTARTS   AGE
nginx1   1/1     Running   0          4m48s
nginx2   1/1     Running   0          4m44s
nginx3   1/1     Running   0          4m40s
  -l, --selector='': Selector (label query) to filter on, supports '=', '==', and '!='.(e.g. -l key1=value1,key2=value2)
➜ k get pods -L app
NAME     READY   STATUS    RESTARTS   AGE     APP
nginx1   1/1     Running   0          3m33s   v1
nginx2   1/1     Running   0          3m29s   v2
nginx3   1/1     Running   0          3m25s   v1
  -L, --label-columns=[]: Accepts a comma separated list of labels that are going to be presented as columns. Names are
case-sensitive. You can also use multiple flag options like -L label1 -L label2...

mihail-i4v avatar Sep 17 '20 07:09 mihail-i4v