kubectl

Working with multiple clusters

  • Check the name of the cluster in your kubeconfig file (default path ~/.kube/config)
- context:
	cluster: nollhomelab
	namespace: default
	user: admin@nollhomelab
name: admin@nollhomelab
  • Switch to the desired context based on the ‘name’ field:
kubectl config use-context admin@nollhomelab