Switching Kubernetes clusters

Let's perform the following steps to switch between the Kubernetes clusters that you have access to using Jenkins X:

  1. Get the existing Kubernetes clusters by listing the contexts:
$ jx context
  1. 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.