I am trying to enable kubernetes for Docker Desktop. Kubernetes is however failing to start.
My log file shows:
cannot get lease for master node: Get "https://kubernetes.docker.internal:6443/apis/coordination.k8s.io/v1/namespaces/kube-node-lease/leases/docker-desktop": x509: certificate signed by unknown authority: Get "https://kubernetes.docker.internal:6443/apis/coordination.k8s.io/v1/namespaces/kube-node-lease/leases/docker-desktop": x509: certificate signed by unknown authority
I have NO_PROXY env var set already, and my hosts file has
127.0.0.1 kubernetes.docker.internal
at the end, as was suggested here
I appreciate any help
2
Answers
Below work around can help you resolve your issue.
You can solve this by
From this issue
Attaching troubleshooting blog1, bolg2 for your reference.
My solution :
$HOME/.kube/config
$HOME/.kube/config
is back and yourkubectl
should workI have multiple
config*
files in.kube
directory – these stay intact