- Kubernetes:A Complete DevOps Cookbook
- Murat Karslioglu
- 88字
- 2025-04-04 13:20:39
Switching Kubernetes clusters
Let's perform the following steps to switch between the Kubernetes clusters that you have access to using Jenkins X:
- Get the existing Kubernetes clusters by listing the contexts:
$ jx context
- Select the cluster you would like to use. In our case, we switch to the gke_devopscookbook cluster that we created using Jenkins X:
Change Kubernetes context: [Use arrows to move, space to select, type to filter]
> gke_devopscookbook_us-central1-a_slayersunset
eks_devopscookbook_us-west
openshift_cluster
Now you know how to switch context using the Jenkins X CLI.