38 lines
1.8 KiB
Markdown
38 lines
1.8 KiB
Markdown
---
|
|
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).
|
|
|