简体   繁体   English

Minikube:有什么方法可以让 driver=none 使用 ingress

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

I am using Minikube on my laptop with "driver=none" option.我在带有“driver=none”选项的笔记本电脑上使用 Minikube。 When I try to enable ingress, I got the following error:当我尝试启用 ingress 时,出现以下错误:

$ 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.经过一番谷歌搜索,我发现 Ingress 插件停止使用从 Minikube v1.12.x 开始的“无”VM 驱动程序,我使用的是 v1.13.1。 (please refer to: https://github.com/kubernetes/minikube/issues/9322 ) (请参考: 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?我想知道是否还有其他方法可以使用“driver=none”选项在 Minikube 上安装“原生”入口?

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 .不幸的是,正如您已经发现的那样, 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.如果您使用none驱动程序,则某些 Kubernetes 组件将作为特权容器运行,这些容器在 Minikube 环境之外具有副作用。 Those side effects mean that the none driver is not recommended for personal workstations.这些副作用意味着不建议将none驱动程序用于个人工作站。

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.该驱动程序的大多数用户应该考虑使用较新的Docker 驱动程序,因为它更容易配置并且不需要 root 访问权限。 The 'none' driver is recommended for advanced users only.仅建议高级用户使用“无”驱动程序。

So basically you have two options here:所以基本上你在这里有两个选择:

  • downgrade to Minikube v1.11 (not recommended)降级到 Minikube v1.11(不推荐)

  • 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.最好听从官方的建议。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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