CKAD-exercises
CKAD-exercises copied to clipboard
Update c.pod_design.md
The option to show specific labels on a get command is no -L and not -l
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...