January 2019
Intermediate to advanced
484 pages
11h 48m
English
Context is the concept of the combination of cluster information, a user for authentication, and a namespace. For example, the following is the context information for one of our clusters in GKE:
- 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_cluster
We could use the kubectl config current-context command to list the current context:
# kubectl config current-context gke_devops-with-kubernetes_us-central1-b_cluster
Read now
Unlock full access