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.