When using the ingress exposure service, kubectl apply -f ingress.yaml reports the following error.
Reported error:
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”: x509: certificate has expired or is not yet valid: current time 2022-03-26T14:45:34Z is before 2022-03-26T20:16:32Z
Solution:
Check kubectl apply -f ingress.yaml
kubectl get validatingwebhookconfigurations
Delete ingress-nginx-admission
kubectl delete -A ValidatingWebhookConfiguration ingress-nginx-admission
Then execute
kubectl apply -f ingress.yaml
Read More:
- [Solved] Kubernetes ingress-srv. error: failed calling webhook “validate.nginx.ingress.kubernetes.io”
- k8s kubernetes ingress error: endpoints “default-http-backend“ not found
- error: error validating “ingress-tomcat6.yaml“: error validating data: [ValidationError(Ingress.spec
- Kubernetes create secret Error: Error from server (InternalError): Internal error occurred…
- K8s ❉ Error: cannot be handled as a** [How to Solve]
- K8S error validating data: ValidationError(Deployment.spec): missing required field selector
- kubernetes Error from server (AlreadyExists): error when creating “kubernetes-dashboard.yaml”: serv
- [Solved] MAC Nginx Error: ginx.pid“ failed (2: No such file or directory)
- [Solved] Nginx Certificate Fill Path Error: SSL: error:0200107B:system library:fopen:Unknown error:fopen
- [Solved] Playbook Start Nginx Error: Unable to start service nginx: Job for nginx.service fd with error code
- Failed to create pod sandbox: rpc error: code = Unknown desc = [failed to set up sandbox container…
- Browser Error: net::ERR_CONTENT_LENGTH_MISMATCH 200 (OK)
- An error occurred: Sorry,Faithfully yours, nginx Error
- How to Solve Nginx 413 Error (request entity too large)
- Gitlab nginx wont start to work. [down: nginx: 1s, normally up, want up; run: log: (pid 20128)xxx]
- [Solved] K8s cluster build error: error: kubectl get csr No resources found.
- [Solved] Upstream connect error or disconnect occurs after the k8s istio virtual machine is restarted
- [Solved] Git push error: error: RPC failed; HTTP 413 curl 22 the requested URL returned error: 413
- [Solved] jumpserver nginx Error: Connect websocket server error
- After configuring the ES password, logstash starts with error 401?