KUBECONFIG - pracip96/K8s-Learning GitHub Wiki

KUBECONFIG consists of the below:

  • server
  • client-key
  • client-certificate
  • certificate-authority

BYDEFAULT, kubectl looks for kubeconfig file under.kube directory

KUBECONFIG file consists of three sections

  1. CLUSTERS (LIST OF CLUSTERS) Server specs goes here.
  2. USERS (LIST OF USERS) Admin users keys and cert goes here
  3. CONTEXTS (CONTEXT DEFINITION) We create a context saying the user to access the cluster