发生内部错误:调用 webhook 失败 "validate.nginx.ingress.kubernetes.io"
Internal error occurred: failed calling webhook "validate.nginx.ingress.kubernetes.io"
我在默认命名空间中启动了入口控制器和 运行。我的其他名称空间有自己的入口 yaml 文件。每当我尝试部署它时。我收到以下错误:
Error from server (InternalError): error when creating "orchestration-ingress.yml": Internal error occurred: failed calling webhook "validate.nginx.ingress.kubernetes.io": Post https://ingress-nginx-controller-admission.default.svc:443/extensions/v1beta1/ingresses?timeout=30s: x509: certificate is valid for ingress-nginx-controller-admission, ingress-nginx-controller-admission.ingress-nginx.svc, not ingress-nginx-controller-admission.default.svc```
这解决了我的错误。我删除了以前版本的入口并部署了这个。
kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v0.34.1/deploy/static/provider/cloud/deploy.yaml
我在默认命名空间中启动了入口控制器和 运行。我的其他名称空间有自己的入口 yaml 文件。每当我尝试部署它时。我收到以下错误:
Error from server (InternalError): error when creating "orchestration-ingress.yml": Internal error occurred: failed calling webhook "validate.nginx.ingress.kubernetes.io": Post https://ingress-nginx-controller-admission.default.svc:443/extensions/v1beta1/ingresses?timeout=30s: x509: certificate is valid for ingress-nginx-controller-admission, ingress-nginx-controller-admission.ingress-nginx.svc, not ingress-nginx-controller-admission.default.svc```
这解决了我的错误。我删除了以前版本的入口并部署了这个。
kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v0.34.1/deploy/static/provider/cloud/deploy.yaml