Upgrade & Secure Your Future with DevOps, SRE, DevSecOps, MLOps!

We spend hours on Instagram and YouTube and waste money on coffee and fast food, but won’t spend 30 minutes a day learning skills to boost our careers.
Master in DevOps, SRE, DevSecOps & MLOps!

Learn from Guru Rajesh Kumar and double your salary in just one year.


Get Started 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/
DevOps Certification, SRE Certification, and DevSecOps Certification by DevOpsSchool

Explore our DevOps Certification, SRE Certification, and DevSecOps Certification programs at DevOpsSchool. Gain the expertise needed to excel in your career with hands-on training and globally recognized certifications.