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

CKA study material · question 59 of 1000

Which two steps give a non-root user kubectl access after kubeadm init? Choose two.

  1. Add the user to the system:masters group
  2. Copy /etc/kubernetes/admin.conf to $HOME/.kube/config
  3. Take ownership of the copied file
  4. Copy /etc/kubernetes/kubelet.conf to $HOME/.kube/config
Show the answer

Answer: B. Copy /etc/kubernetes/admin.conf to $HOME/.kube/config
C. Take ownership of the copied file

kubeadm's own output tells the user to copy admin.conf into $HOME/.kube/config and chown it.

Source: Creating a cluster with kubeadm (Kubernetes) — Initializing your control-plane node

Challenge yourself on this topic → Study as cards