Minikube doesn't work on Mac with hyperkit driver and VPN

10/6/2020

I tried to run minikube with hyperkit driver on VPN. While installing with minikube start --vm=true This error occurred.

❗ This VM is having trouble accessing https://k8s.gcr.io

Someone said from github community, I should use docker but I can not use docker driver for now, because I should install ingress addon, when I tried with docker, it said this addon doesn't work with docker, so it recommends to use the alternative.

Is there any solution to make hyperkit work on VPN?

-- Dong
docker
hyperkit
kubernetes
minikube
vpn

2 Answers

9/7/2021

I'm on Mac and I faced the same issue. I solved it by applying the flag --hyperkit-vpnkit-sock=auto to minikube start --vm=true. This will, according to the docs:

Location of the VPNKit socket used for networking. If empty, disables Hyperkit VPNKitSock, if 'auto' uses Docker for Mac VPNKit connection, otherwise uses the specified VSock (hyperkit driver only)

-- Marcust97
Source: StackOverflow

10/7/2020

This is a known issue. You can try using --vmdriver=virtualbox or --vmdriver=vmwarefusion. Note that you will either have to install VirtualBox or VMware Fusion (Paid license required)

-- Rico
Source: StackOverflow