⎈ k8s knowledge compiler

Node Labels Populated By The Kubelet [page]deterministic

reference

Kubernetes [nodes](#gloss:node) come pre-populated with a standard set of [labels](#gloss: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/#kubernetesiohostname) * [`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)

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.

##

  • 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).

Sources

reference/node/node-labels.md · docNode Labels Populated By The Kubelet

Related (5)

references Nodenodes conf=1
references Labellabels conf=1
part_of Preset labelsdescribes conf=1
part_of {{% heading "whatsnext" %}}describes conf=1
api_for Nodedocuments API object conf=1

← all Docs