首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >为什么我不能在minikube中开启入口?

问为什么我不能在minikube中开启入口?
EN

Stack Overflow用户
提问于 2021-11-22 15:54:35
回答 2查看 851关注 0票数 0

我正在尝试启用民库的入口。当我运行minikube addons enable ingress时,它挂起了一段时间,然后我得到了以下错误消息:

代码语言:javascript
复制
❌  Exiting due to MK_ADDON_ENABLE: run callbacks: running callbacks: [sudo KUBECONFIG=/var/lib/minikube/kubeconfig /var/lib/minikube/binaries/v1.19.15/kubectl apply -f /etc/kubernetes/addons/ingress-deploy.yaml: Process exited with status 1
stdout:
namespace/ingress-nginx unchanged
serviceaccount/ingress-nginx unchanged
configmap/ingress-nginx-controller unchanged
configmap/tcp-services unchanged
configmap/udp-services unchanged
clusterrole.rbac.authorization.k8s.io/ingress-nginx unchanged
clusterrolebinding.rbac.authorization.k8s.io/ingress-nginx unchanged
role.rbac.authorization.k8s.io/ingress-nginx unchanged
rolebinding.rbac.authorization.k8s.io/ingress-nginx unchanged
service/ingress-nginx-controller-admission unchanged

stderr:
error: error validating "/etc/kubernetes/addons/ingress-deploy.yaml": error validating data: [ValidationError(Service.spec): unknown field "ipFamilies" in io.k8s.api.core.v1.ServiceSpec, ValidationError(Service.spec): unknown field "ipFamilyPolicy" in io.k8s.api.core.v1.ServiceSpec]; if you choose to ignore these errors, turn validation off with --validate=false
 waiting for app.kubernetes.io/name=ingress-nginx pods: timed out waiting for the condition]

╭───────────────────────────────────────────────────────────────────────────────────────────╮
│                                                                                           │
│      If the above advice does not help, please let us know:                             │
│      https://github.com/kubernetes/minikube/issues/new/choose                           │
│                                                                                           │
│    Please run `minikube logs --file=logs.txt` and attach logs.txt to the GitHub issue.    │
│    Please also attach the following file to the GitHub issue:                             │
│    - /tmp/minikube_addons_2c0e0cafd16ea0f95ac51773aeef036b316005b6_0.log                  │
│                                                                                           │
╰───────────────────────────────────────────────────────────────────────────────────────────╯

这是我使用的minikube启动命令:minikube start --kubernetes-version=v1.19.15 --vm-driver=docker

我试过重新安装minikube。上周,当我运行相同的命令时,它工作得很好。

如果需要更具体的信息,请让我知道,我会编辑问题。有人知道我该怎么解决这个问题吗?

提前谢谢。

EN

回答 2

Stack Overflow用户

发布于 2021-11-23 16:50:08

降级到minikube v1.23.2修复了这个问题。

票数 1
EN

Stack Overflow用户

发布于 2021-11-22 23:19:27

Linux目前只支持using?

  • 您仍然可以使用vmware

运行minikube

代码语言:javascript
复制
# If you are using Mac:
brew install docker-machine-driver-vmware
# Start a cluster using the vmware driver:
minikube start --driver=vmware
# To make vmware the default driver:
minikube config set driver vmware
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/70068633

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档