kubernetes labels
Pod labels
To organize pods, we can use labels
, that can be used to organize and select groups of objects.
Some recommended labels: https://kubernetes.io/docs/concepts/overview/working-with-objects/common-labels/
Using labels to restrict scheduling
You can use the nodeSelector
directive in the spec
section to restrict the scheduling, e.g.:
kubernetes nodes labels
It’s also possible to add labels on kubernetes nodes.