The above will configure Windowskubectl to be able to talk to Kubernetes in minikube, but the kubectl in WSL won’t work. To fix that, open %userprofile%\.kube\config in a text editor and copy all the minikube context, cluster, and user from there into ~/.kube/config in your WSL environment.

Create another bash script named minikube-go in your WSL path to configure WSL Docker to talk to minikube: