-
Notifications
You must be signed in to change notification settings - Fork 14.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Link to specific node labels rather than entire list
Less visual space compared to the original approach, but still shows which labels you can expect to find set on a node. Co-authored-by: Ritikaa96 <[email protected]>
- Loading branch information
Showing
3 changed files
with
39 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
--- | ||
content_type: "reference" | ||
title: Node Labels Populated By The Kubelet | ||
weight: 40 | ||
--- | ||
|
||
Kubernetes {{< glossary_tooltip text="nodes" term_id="node" >}} come pre-populated | ||
with a standard set of {{< glossary_tooltip text="labels" term_id="label" >}}. | ||
|
||
You can also set your own labels on nodes, either through the kubelet configuration or | ||
using the Kubernetes API. | ||
|
||
## Preset labels | ||
|
||
The preset labels that Kubernetes sets on nodes are: | ||
|
||
* [`kubernetes.io/arch`](/docs/reference/labels-annotations-taints/#kubernetes-io-arch) | ||
* [`kubernetes.io/hostname`](/docs/reference/labels-annotations-taints/#kubernetes-io-hostname) | ||
* [`kubernetes.io/os`](/docs/reference/labels-annotations-taints/#kubernetes-io-os) | ||
* [`node.kubernetes.io/instance-type`](/docs/reference/labels-annotations-taints/#nodekubernetesioinstance-type) | ||
(if known to the kubelet – Kubernetes may not have this information to set the label) | ||
* [`topology.kubernetes.io/region`](/docs/reference/labels-annotations-taints/#topologykubernetesioregion) | ||
(if known to the kubelet – Kubernetes may not have this information to set the label) | ||
* [`topology.kubernetes.io/zone`](/docs/reference/labels-annotations-taints/#topologykubernetesiozone) | ||
(if known to the kubelet – Kubernetes may not have this information to set the label) | ||
|
||
{{<note>}} | ||
The value of these labels is cloud provider specific and is not guaranteed to be reliable. | ||
For example, the value of `kubernetes.io/hostname` may be the same as the node name in some environments | ||
and a different value in other environments. | ||
{{</note>}} | ||
|
||
## {{% heading "whatsnext" %}} | ||
|
||
- See [Well-Known Labels, Annotations and Taints](/docs/reference/labels-annotations-taints/) for a list of common labels. | ||
- Learn how to [add a label to a node](/docs/tasks/configure-pod-container/assign-pods-nodes/#add-a-label-to-a-node). | ||
|