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
Below work around can help you resolve your issue.
You can solve this by
From this issue
Attaching troubleshooting blog1, bolg2 for your reference.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With