After minikube start is successfully executed, I cannot connect to the minkube cluster through kubelet.
Steps to reproduce the issue:
1.minikube start
# zz @ RX300 in ~ [4:14:29]
$ minikube start
๐ minikube v1.12.1 on Ubuntu 18.04
โจ Using the kvm2 driver based on user configuration
๐ Starting control plane node minikube in cluster minikube
๐ฅ Creating kvm2 VM (CPUs=2, Memory=4096MB, Disk=20000MB) ...
๐ Found network options:
โช http_proxy=http://127.0.0.1:8123
โ You appear to be using a proxy, but your NO_PROXY environment does not include the minikube IP (192.168.39.111).
๐ Please see https://minikube.sigs.k8s.io/docs/handbook/vpn_and_proxy/ for more details
โช https_proxy=http://127.0.0.1:8123
โช no_proxy=http://192.168.39.215
โ This VM is having trouble accessing https://k8s.gcr.io
๐ก To pull new external images, you may need to configure a proxy: https://minikube.sigs.k8s.io/docs/reference/networking/proxy/
๐ณ Preparing Kubernetes v1.18.3 on Docker 19.03.12 ...
โช env HTTP_PROXY=http://127.0.0.1:8123
โช env HTTPS_PROXY=http://127.0.0.1:8123
โช env NO_PROXY=http://192.168.39.215
๐ Verifying Kubernetes components...
๐ Enabled addons: default-storageclass, storage-provisioner
๐ Done! kubectl is now configured to use "minikube"
$ kubectl get po -A
Unable to connect to the server: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
$ minikube status
minikube
type: Control Plane
host: Running
kubelet: Running
apiserver: Running
kubeconfig: Configured
Add 192.168.0.0/16 to your NO_PROXY env variable?
@lingsamuel Thank you for your suggestion, it solved my problem.
The clue is in the log:
โ You appear to be using a proxy, but your NO_PROXY environment does not include the minikube IP (192.168.39.111).
Read the log carefully can solved many problems.
Most helpful comment
Add
192.168.0.0/16to yourNO_PROXYenv variable?