Lost some time yesterday figuring out how to switch between different Kubernetes environments. So a quick post, just as a reminder for myself:
You can view contexts using the kubectl config command:
kubectl config get-contexts
CURRENT NAME CLUSTER NAMESPACE
* docker-desktop docker-desktop docker-desktop
docker-for-desktop docker-desktop docker-desktop
You can set the context by specifying the context name:
kubectl config use-context docker-for-desktop