Minikube: After minikube start is completed, kubelet cannot connect to the cluster

Created on 30 Jul 2020  ยท  3Comments  ยท  Source: kubernetes/minikube

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"
  1. kubectl get po -A
$ 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

Most helpful comment

Add 192.168.0.0/16 to your NO_PROXY env variable?

All 3 comments

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.

Was this page helpful?
0 / 5 - 0 ratings