Error from server (InternalError): error when creating “ingress.yaml“: Internal error occurred: fail

  • Post author:
  • Post category:其他


在创建ingress策略yaml文件

执行

kubectl apply -f ingress.yaml

命令时报错:

Error from server (InternalError): error when creating “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.101.148.253:443: connect: con nection refused

在这里插入图片描述

【解决方案】

查看kubectl apply -f ingress.yaml

kubectl get validatingwebhookconfigurations

在这里插入图片描述
删除ingress-nginx-admission

kubectl delete -A ValidatingWebhookConfiguration ingress-nginx-admission

再执行命令,成功

kubectl apply -f ingress.yaml

在这里插入图片描述



版权声明:本文为energylocked原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。