[英]Kubernetes Nginx Ingress "ingress-nginx-admission" not found
I want to run a nginx ingress controller on a raspberry kubernetes.我想在覆盆子 kubernetes 上运行 nginx 入口 controller。
Unfortunately I get the error message不幸的是,我收到错误消息
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Normal Scheduled 14m default-scheduler Successfully assigned ingress-nginx/ingress-nginx-controller-75557995f8-dz7hz to node1-pi4
Warning FailedMount 12m kubelet Unable to attach or mount volumes: unmounted volumes=[webhook-cert], unattached volumes=[kube-api-access-7k4qh webhook-cert]: timed out waiting for the condition
Warning FailedMount 81s (x5 over 10m) kubelet Unable to attach or mount volumes: unmounted volumes=[webhook-cert], unattached volumes=[webhook-cert kube-api-access-7k4qh]: timed out waiting for the condition
Warning FailedMount 24s (x15 over 14m) kubelet MountVolume.SetUp failed for volume "webhook-cert" : secret "ingress-nginx-admission" not found
there are additional logs in the github Issue . github 问题中有额外的日志。 This version should be compatible with ARM CPU.
此版本应与 ARM CPU 兼容。 I could not find any other information on setting up the this ingress controller on raspberry Pis.
我找不到有关在树莓派上设置此入口 controller 的任何其他信息。
Not very sure what exactly happened on your device.不太确定您的设备上到底发生了什么。 But I got a very similar issue.
但我遇到了一个非常相似的问题。 The solution may be helpful.
该解决方案可能会有所帮助。
If you have tried multiple times to destroy the cluster, by kubeadm reset
, without removing cni0
device, ingress-nginx-admission
pod won't be able to get created due to failure to connect API server.如果您多次尝试通过
kubeadm reset
销毁集群,而不删除cni0
设备,由于连接 API 服务器失败,将无法创建ingress-nginx-admission
pod。
Either deleting cni0
device or simply restarting Pi device should remove such device successfully.删除
cni0
设备或简单地重新启动 Pi 设备应成功删除此类设备。
I would also check whether the following directories and files are deleted after running kubeadm reset
我还会检查运行
kubeadm reset
后是否删除了以下目录和文件
sudo rm -fr /etc/kubernetes/; sudo rm -fr /var/lib/etcd; sudo rm -rf /var/lib/cni/
sudo rm -fr /etc/cni/net.d
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.