Installing version 21.3.using kubernetes V1.19.
for nginx I used the procedure
kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v0.40.2/deploy/static/provider/baremetal/deploy.yaml
I have the following error:
[create] [ FAILED ] Ingress apmservices-gateway. Failure executing: POST at:
https://55.15.1.190:6443/apis/extensions/v1beta1/namespaces/dxi/ingresses.
Message: 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":
Service Unavailable. Received status: Status(apiVersion=v1, code=500, details=StatusDetails(causes=[StatusCause(field=null,
message=failed calling webhook "validate.nginx.ingress.kubernetes.io":
Post "https://ingress-nginx-controller-admission.ingress-nginx.svc:443/networking/v1beta1/ingresses?timeout=10s":
Service Unavailable, reason=null, additionalProperties={})], group=null, kind=null, name=null, retryAfterSeconds=null, uid=null, additionalProperties={}),
kind=Status, message=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":
Service Unavailable, metadata=ListMeta(_continue=null, resourceVersion=null, selfLink=null, additionalProperties={}),
reason=InternalError, status=Failure, additionalProperties={}).
Release : 21.3
Component :
The solution is to run
kubectl delete -A ValidatingWebhookConfiguration ingress-nginx-admission
based on
https://stackoverflow.com/questions/61616203/nginx-ingress-controller-failed-calling-webhook