mention feature gates in label docs

pull/42139/head
Daniel Vega-Myhre 2023-07-27 18:31:50 +00:00
parent e31ceb6cb1
commit f3fb1cbcfc
1 changed files with 5 additions and 1 deletions

View File

@ -238,7 +238,8 @@ When a StatefulSet controller creates a Pod for the StatefulSet, it sets this la
The value of the label is the ordinal index of the pod being created.
See [Pod Index Label](/docs/concepts/workloads/controllers/statefulset/#pod-index-label)
in the StatefulSet topic for more details.
in the StatefulSet topic for more details. Note the [PodIndexLabel](content/en/docs/reference/command-line-tools-reference/feature-gates.md) feature gate must be enabled
for this label to be added to pods.
### cluster-autoscaler.kubernetes.io/safe-to-evict
@ -1056,6 +1057,9 @@ Used on: Pod
The Job controller in the kube-controller-manager sets this as a label and annotation for Pods
created with Indexed [completion mode](/docs/concepts/workloads/controllers/job/#completion-mode).
Note the [PodIndexLabel](content/en/docs/reference/command-line-tools-reference/feature-gates.md) feature gate must be enabled
for this to be added as a pod **label**, otherwise it will just be an annotation.
### kubectl.kubernetes.io/default-container
Type: Annotation