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

CKA study material · question 554 of 1000

How should a restricted label such as node-role.kubernetes.io/worker be applied to a node in a kubeadm cluster?

  1. Through the kubelet's --node-labels flag before first start
  2. By editing /var/lib/kubelet/config.yaml on the node
  3. With kubectl label after the node has joined, using a privileged kubeconfig
  4. By adding it to the JoinConfiguration nodeRegistration section
Show the answer

Answer: C. With kubectl label after the node has joined, using a privileged kubeconfig

Restricted labels cannot be self-applied by a kubelet under NodeRestriction, so they are set afterwards with kubectl label using a privileged kubeconfig such as admin.conf.

Source: Creating a cluster with kubeadm (Kubernetes) — Managed node labels

Challenge yourself on this topic → Study as cards