Difference between revisions of "Kubernetes labels"

From wikieduonline
Jump to navigation Jump to search
Tags: Mobile web edit, Mobile edit
Line 9: Line 9:
 
  kubectl get pods -l environment=myproduction,tier=myfrontend
 
  kubectl get pods -l environment=myproduction,tier=myfrontend
 
  kubectl get pods -l 'environment in (myproduction, myqa)'
 
  kubectl get pods -l 'environment in (myproduction, myqa)'
 +
 +
.../...
 +
metadata:
 +
  [[labels:]]
 +
.../...
  
 
== Activities ==
 
== Activities ==
* [[CKA v1.21: Understand how to use Labels, Selector and Annotations]]
+
* [[CKA v1.15]], [[CKA v1.21: Understand how to use Labels, Selector and Annotations]]
* [[CKA v1.15]]: [[Understand how to use Labels, Selector and Annotations]]
 
 
* [[CKA v1.18]]: Use [[label]] selectors to [[schedule Pods]]
 
* [[CKA v1.18]]: Use [[label]] selectors to [[schedule Pods]]
  

Revision as of 14:59, 19 July 2022

https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/

kubectl get pods -l environment=myproduction,tier=myfrontend
kubectl get pods -l 'environment in (myproduction, myqa)'
.../...
metadata:
 labels:
.../...

Activities

Related

See also

Advertising: