Improve docs for NamespaceDefaultLabelName

This commit is contained in:
Tim Bannister
2021-04-01 20:09:50 +01:00
parent 8cadfc4ffd
commit 6c935b6f90
4 changed files with 30 additions and 8 deletions
@@ -36,7 +36,13 @@ Example: `kubernetes.io/metadata.name=mynamespace`
Used on: Namespaces
Kubernetes API Server defaults this label to the namespace name during admission. This label can be used with any namespace selector, as an example with NetworkPolicy objects.
When the `NamespaceDefaultLabelName`
[feature gate](/docs/reference/command-line-tools-reference/feature-gates/) is enabled,
the Kubernetes API server sets this label on all namespaces. The label value is set to
the name of the namespace.
This is useful if you want to target a specific namespace with a label
{{< glossary_tooltip text="selector" term_id="selector" >}}.
## beta.kubernetes.io/arch (deprecated)