一.背景。
在做云原生的时候,使用ingress暴露服务时候报错,记录一下。
二. 解决方式。
Error from server (InternalError): error when creating "ingress-rule.yaml": Internal error occurred: failed calling webhook "validate.nginx.ingress.kubernetes.io": Post "https://ingress-nginx-controller-admission.ingress-nginx.svc:443/networking/v1beta1/ingresses?timeout=10s": dial tcp ip:443: connect: connection refused
1、查看kubectl apply -f ingress-rule.yaml,执行:
kubectl get validatingwebhookconfigurations
2、删除ingress-nginx-admission,执行:
kubectl delete -A ValidatingWebhookC