win10: minikube addons enable ingress 失败
win10 已启动Hyper-v
minikube start --vm-driver=hyperv --image-repository=registry.cn-hangzhou.aliyuncs.com/google_containers
启动后执行:minikube addons enable ingress 失败:
开启失败: run callbacks: running callbacks: [verifying ingress addon pods : timed out waiting for the condition: timed out waiting for the condition]
查看dashboard上的错误:
MountVolume.SetUp failed for volume "webhook-cert" : secret "ingress-nginx-admission" not found从新执行启动,使用如下命令:
minikube start --vm-driver=hyperv --registry-mirror=https://ytsch4ca.mirror.aliyuncs.com --image-repository=registry.cn-hangzhou.aliyuncs.com/google_containers
再次:minikube addons enable ingress
后记:近日发现上述命令失败,进行修改同时增加从docker registry 库中可以拉取镜像:
可以启动ingress
minikube start --vm-driver=hyperv --registry-mirror=https://ytsch4ca.mirror.aliyuncs.com --image-repository=registry.cn-hangzhou.aliyuncs.com/google_containers --insecure-registry=registry.auth.com:5000
可以启动ingress并且可以拉取本地docker 仓库镜像:registry.auth.com:5000/app:v1
安装成功!
看情况是需要配置 --registry-mirror选项