[root@k8s-master01 test]# kubectl apply -f web-ingress.yaml
Error from server (InternalError): error when creating "web-ingress.yaml": Internal error occurred: failed calling webhook "validate.nginx.ingress.kubernetes.io": failed to call webhook: Post "https://ingress-nginx-controller-admission.ingress-nginx.svc:443/networking/v1/ingresses?timeout=10s": dial tcp 10.97.215.121:443: connect: connection refused
删除ingress-nginx-admission
[root@k8s-master01 test]# kubectl delete -A ValidatingWebhookConfiguration ingress-nginx-admission
validatingwebhookconfiguration.admissionregistration.k8s.io "ingress-nginx-admission" deleted
重新执行相关规则
[root@k8s-master01 test]# kubectl apply -f web-ingress.yaml
ingress.networking.k8s.io/nginx-ingress created
标签:kubectl,ingress,admission,nginx,添加,报错,io,k8s
From: https://blog.51cto.com/u_14529165/6599882