kubectl and kubeconfig · Question 1 of 12

Where does kubectl look for its configuration by default when nothing else is specified?

1 answer is correct. Easy Created with AI

Show answer

Answer

  • A In the file ~/.kube/config

Explanation

Without the --kubeconfig flag and without the KUBECONFIG environment variable, kubectl reads the file config in the .kube folder of the home directory. It lists clusters, users and contexts.

Certifications & exams

Which exam comes next?

You can already practise for 51 exams, and 16 are up for a vote. See all certifications with their official information, cast your vote or suggest your exam.

See all certifications