January 2019
Intermediate to advanced
484 pages
11h 48m
English
Kubeconfig is a file that you can use to switch multiple clusters by switching context. We can use kubectl config view to view the setting and the kubectl config current-context command to check the context you're currently using. The following is an example of a GCP cluster in a kubeconfig file:
# kubectl config view apiVersion: v1 clusters: - cluster: certificate-authority-data: DATA+OMITTED server: https://35.0.0.200 name: gke_devops-with-kubernetes_us-central1-b_clustercontexts:- context: cluster: gke_devops-with-kubernetes_us-central1-b_cluster user: gke_devops-with-kubernetes_us-central1-b_cluster name: gke_devops-with-kubernetes_us-central1-b_clustercurrent-context: gke_devops-with-kubernetes_us-central1-b_clusterkind: Config ...
Read now
Unlock full access