reset the kubectl context to docker desktop

Viewed 3068

I have installed docker desktop on my windows 10 and have enabled Kubernetes. When I run the kubectl config current-context command I am getting this response gke_k8s-demo-263903_asia-south1-a_kubia. How do I set up the context to point to docker-desktop? I remember that I had worked with GKE earlier but not sure how to reset the context.

1 Answers

From your local machine run, you should see docker-desktop listed:

kubectl config get-contexts

Then run the below:

kubectl config use-context docker-desktop

If the cluster name you want to communicate with is not listed, it means you haven't got to context file to the cluster.

Related