Limited Time Offer!

For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly.
Master DevOps, SRE, DevSecOps Skills!

Enroll Now

Kubernetes Error – minikube – A firewall is likely blocking minikube from reaching the internet

If you are trying a start in minikube behind a firewall and getting following errors

C:\WINDOWS\system32>minikube start
* minikube v1.2.0 on windows (amd64)
* Downloading Minikube ISO ...

X Failed to cache ISO
* Error:         [ISO_DOWNLOAD_FAILED] https://storage.googleapis.com/minikube/iso/minikube-v1.2.0.iso: failed to download: failed to download to temp file: download failed: 5 error(s) occurred:

* Temporary download error: Get https://storage.googleapis.com/minikube/iso/minikube-v1.2.0.iso: proxyconnect tcp: tls: first record does not look like a TLS handshake
* Temporary download error: Get https://storage.googleapis.com/minikube/iso/minikube-v1.2.0.iso: proxyconnect tcp: tls: first record does not look like a TLS handshake
* Temporary download error: Get https://storage.googleapis.com/minikube/iso/minikube-v1.2.0.iso: proxyconnect tcp: tls: first record does not look like a TLS handshake
* Temporary download error: Get https://storage.googleapis.com/minikube/iso/minikube-v1.2.0.iso: proxyconnect tcp: tls: first record does not look like a TLS handshake
* Temporary download error: Get https://storage.googleapis.com/minikube/iso/minikube-v1.2.0.iso: proxyconnect tcp: tls: first record does not look like a TLS handshake
* Advice:        A firewall is likely blocking minikube from reaching the internet. You may need to configure minikube to use a proxy.
* Documentation: https://github.com/kubernetes/minikube/blob/master/docs/http_proxy.md
* Related issues:
  - https://github.com/kubernetes/minikube/issues/3922

* If the above advice does not help, please let us know:
  - https://github.com/kubernetes/minikube/issues/new

Solutions

You need to set a proxy on a command line.

macOS and Linux

export HTTP_PROXY=http://<proxy hostname:port>
export HTTPS_PROXY=https://<proxy hostname:port>
export NO_PROXY=localhost,127.0.0.1,10.96.0.0/12,192.168.99.0/24,192.168.39.0/24

minikube start

Windows

set HTTP_PROXY=http://<proxy hostname:port>
set HTTPS_PROXY=https://<proxy hostname:port>
set NO_PROXY=localhost,127.0.0.1,10.96.0.0/12,192.168.99.1/24,192.168.39.0/24

minikube start

Reference

  • https://minikube.sigs.k8s.io/docs/reference/networking/proxy/
Rajesh Kumar
Follow me