简体   繁体   中英

Minikube: Are there any ways for driver=none to use ingress

I am using Minikube on my laptop with "driver=none" option. When I try to enable ingress, I got the following error:

$ minikube addons enable ingress

❌  Exiting due to MK_USAGE: Due to networking limitations of driver none, ingress addon is not supported. Try using a different driver.

After some googling, I found that Ingress addon stopped to work with 'none' VM driver starting from Minikube v1.12.x, and I am using v1.13.1. (please refer to: https://github.com/kubernetes/minikube/issues/9322 )

I wonder whether there are other ways to install "native" ingress on Minikube with the "driver=none" option?

This is a community wiki answer. Feel free to expand it.

Unfortunately, as you already found out, this addon is not supported with with vm-driver=none .

If you use the none driver, some Kubernetes components run as privileged containers that have side effects outside of the Minikube environment. Those side effects mean that the none driver is not recommended for personal workstations.

Also, according to the official docs :

Most users of this driver should consider the newer Docker driver , as it is significantly easier to configure and does not require root access. The 'none' driver is recommended for advanced users only.

So basically you have two options here:

  • downgrade to Minikube v1.11 (not recommended)

  • use a supported driver (strongly recommended)

Remember that these changes are made for a reason and going against them is usually a bad idea. It would be better to follow the official recommendation.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM