Internal error occurred: failed calling webhook "validate.nginx.ingress.kubernetes.io"

12/18/2020

i have ingress controller up and running in default namespace. my other namespaces have their own ingress yaml files. whenever i try to deploy that. i get the following error:

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```
-- Gaurav Jaitly
kubernetes
kubernetes-ingress
nginx-ingress

1 Answer

1/5/2021

This solved my error. i removed previous version of ingress and deployed this one.

kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v0.34.1/deploy/static/provider/cloud/deploy.yaml

-- Gaurav Jaitly
Source: StackOverflow