kubernetes 运维——v1.9.0 安装ingress-nginx-controller出错MountVolume.SetUp failed for volume “webhook-cert“

kubernetes 1.9.0 安装ingress-nginx-controller出错:

MountVolume.SetUp failed for volume "webhook-cert" : secret "ingress-nginx-admission" not found
Failed to pull image "k8s.gcr.io/ingress-nginx/controller:v0.41.2@sha256:1f4f402b9c14f3ae92b11ada1dfe9893a88f0faeb0b2f4b903e2c67a0c3bf0de": rpc error: code = Unknown desc = Get https://k8s.gcr.io/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)

意思就是下载不了这个镜像,我们可以使用国内的镜像进行下载,然后即可正常安装

v0.41.2安装时出现安装失败的问题

有人提了issue,并且kubernetes开源组织也处理了,https://github.com/kubernetes/ingress-nginx/issues/5932

使用v0.41.0替换v0.41.2

# kubectl get pods --all-namespaces

ingress-nginx          ingress-nginx-controller-675cf57fb9-s4m8s    1/1     Running     0          4m57s

你可能感兴趣的:(DevOps,kubernetes)