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

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

我在笔记本电脑上使用带有“driver=none”选项的 Minikube。当我尝试启用入口时,出现以下错误:

$ 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.

谷歌搜索后,我发现 Ingress 插件停止使用 'none' 从 Minikube v1.12.x 开始的 VM 驱动程序,而我使用的是 v1.13.1。 (请参考:https://github.com/kubernetes/minikube/issues/9322

我想知道是否有其他方法可以使用“driver=none”选项在 Minikube 上安装“原生”ingress?

这是一个社区维基答案。随意扩展它。

不幸的是,正如您已经发现的那样,vm-driver=none 不支持此插件。

如果您使用 none 驱动程序,一些 Kubernetes 组件 运行 作为特权容器在 Minikube 环境之外有副作用。这些副作用意味着 none 驱动程序不推荐用于个人工作站。

另外,根据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.

基本上你有两个选择:

  • 降级到 Minikube v1.11(不推荐)

  • 使用受支持的驱动程序(强烈推荐)

请记住,做出这些更改是有原因的,违背它们通常是个坏主意。还是按照官方推荐的为好。