lables,selector,replicaset,deploymentset
Labels:- Labels are the mechanism to organize Kubernetes objects such as Pods A label is a key-value pair. Labels can be attached to objects at creation time or added and modified at any time. "metadata" : { "labels" : { "key1" : "value1" , "key2" : "value2" } } To create lables imperative we can use kubectl label pods delhipod myname=ajay // delhipod is pod name to check the lables kubectl get pods --show-labels // to show the lables of pods To get the pods where env is not equal to development kubectl get pods -l env!=development // We need to use ! sign before key (env is key hear) We can also delete the pods using lables kubectl delete pod -l env!=development Labels Selector Once the lables are attached to an object, we would need filters to narrow down and these are called as labels selector The API currently supports two types of selector - 1 equality based ( =, !=)...