Study. uk . com
  1. Home
  2. All questions
  3. Question 508

CKA study material · question 508 of 1000

An operator edits a node's systemd unit to add a new value to --node-labels and restarts the kubelet, but the label never appears on the Node object. What explains this?

  1. Node labels are only set when the Node registers, so a restart alone does not apply them
  2. The kubelet applies node labels only after its first successful heartbeat, which takes an hour
  3. Labels supplied by flags are stored as annotations instead
  4. The label was rejected because node labels must be prefixed with node.kubernetes.io/
Show the answer

Answer: A. Node labels are only set when the Node registers, so a restart alone does not apply them

Labels are written at Node registration and not refreshed afterwards, so a kubelet restart with new --node-labels changes nothing until the node re-registers.

Source: Nodes (Kubernetes) — Management › Self-registration of Nodes

Challenge yourself on this topic → Study as cards