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

CKA study material · question 625 of 1000

An engineer sets KUBECONFIG to two file paths separated by a colon on Linux. What does kubectl do?

  1. It uses the first file and ignores the second
  2. It merges the files into one effective configuration
  3. It fails, since KUBECONFIG accepts only one path
  4. It uses whichever file defines the current context and ignores the other
Show the answer

Answer: B. It merges the files into one effective configuration

KUBECONFIG holds a colon-separated list on Linux and macOS, and kubectl merges the listed files. Only the --kubeconfig flag turns merging off.

Source: Organizing Cluster Access Using kubeconfig Files (Kubernetes) — The KUBECONFIG environment variable

Challenge yourself on this topic → Study as cards