-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
apply ingress rule error after install ingress-nginx: x509 certificate is not valid ingress-nginx-controller-admission.ingress-nginx.svc #5968
Comments
No one meet this error??
apply ingress rule still report same error ; If I disable webhooks ,then I apply ingress rule,it is OK; |
kubectl delete -A ValidatingWebhookConfiguration ingress-nginx-admission |
@liminghua999 can you please check if the output of these two commands match?
|
[root@master01 ~]# kubectl -n ingress-nginx get validatingwebhookconfigurations ingress-nginx-admission -ojsonpath='{.webhooks[0].clientConfig.caBundle}' |
I am seeing this problem also:
This is in minikube with Ingress-nginx installed using I can 'resolve' it using |
I'm running into the same issue, did anyone solve this? |
Me too, is it new ? |
Hi , I am also facing this same issue, did you find any resolution for this other than deleting the Webhook configuration? |
No, not yet. It's annoyingly, but the work around is not too troublesome,
so we have not spent more time trying to fix it.
…On Tue, 24 Nov 2020, 11:45 KaivalyaDabhadkar, ***@***.***> wrote:
I am seeing this problem also:
Internal error occurred: failed calling webhook "
validate.nginx.ingress.kubernetes.io": Post "
https://ingress-nginx-controller-admission.kube-system.svc:443/extensions/v1beta1/ingresses?timeout=30s":
x509: certificate signed by unknown authority
This is in minikube with Ingress-nginx installed using minikube addons
enable ingress
I can 'resolve' it using kubectl delete -A ValidatingWebhookConfiguration
ingress-nginx-admission but this does not seem like a solution, its just
a hack to get it working.
Hi , I am also facing this same issue, did you find any resolution for
this other than deleting the Webhook configuration?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#5968 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABBOUR5V5CFA2BFTIMLELFLSROMFZANCNFSM4PTALKBA>
.
|
@md-waldron What version of minikube, kubernetes and which minikube driver are you using? Can you describe what you are doing to reproduce this issue? |
@sschne I updated my docker and k8s recently and I no longer seem to have the issue. Here is the startup I get when starting minikube, seems all the version info you wanted is reported in that: 😄 minikube v1.14.0 on Darwin 11.0.1 |
in kubernetes 1.17.13 i have the same issue and don't know how to solve it. |
docker://19.3.13 The same problem. |
Borrowing from answers above, here's what resolved this for me. Issue started when I deleted an entire namespace that had contained nginx-ingress, and then tried to reinstall everything via helm. Kept getting upon
Solution: # Find name of the ingress-nginx-admission resource
kubectl get -A ValidatingWebhookConfiguration
# Delete it
kubectl delete -A ValidatingWebhookConfiguration <name>
# Example:
kubectl delete -A ValidatingWebhookConfiguration foobar-ingress-nginx-admission |
I'm encountering this issue, and I don't have a valid workaround, because my I am not sure if it's related, but I followed @costela's instructions, and this command has no output:
This command
shows
Is this the problem, no Or is there a workaround to delete the |
My fix for this issue without deleting the validatingwebhookconfigurations. Inspired by #5968 (comment)
|
@liminghua999 Why you close this issue? I am still getting it with K8S 1.21.1 and 0.46.0 ingress. |
I ran into the the same problem. I fixed it by deleting and reapplying the |
Running the If you are looking for an easy way to trigger the ingress-nginx-admission-patch job. Helm chart version upgrade will trigger it. |
I've seen this where I'd accidentally introduced quotes into the class-name for the controller in the args for Deployment-ingress-nginx-controller.yml - doing some substitution so I could consider multiple controllers (on different network segments). Don't put quotes there, and avoid underscores. The log for the ingress controller deployment will show: |
|
Internal error occurred: failed calling webhook "validate.nginx.ingress.kubernetes.io": an error on the server ("") has prevented the request from succeeding |
the solution of @marv254 works for me. |
Inspired by @marv254 's comment. I had a similar issue with missing caBundle in the validatingwebhookconfigurations/ingress-nginx-admission, and it was installed via ArgoCD and a customized ingress-nginx helm chart. Since ingress-nginx-admission-patch has an annotation In my case, my custom chart contains some resources that required the admission webhook with the caBundle, and that caused Helm chart to never reaches the 'post-install' stage. My solution is to add the annotation |
Hi I've having the same problem. And based in the comment
I've been investigating. I don't use Helm, and I've had to configure each component individually. There're two Jobs for nginx-admission-webhooks, create and patch. And Based in the Image's documentation we have a command line with their especifications: https://github.com/jet/kube-webhook-certgen#patch
Doing that I've got a correct validatingwebhookconfiguration config. I hope that help you. |
@danivendetta you put the same link twice, typo I think. |
@damienleger Thanks, I've edit the post. |
I'm just adding this in case someone else hits the same issue as me. In my case, we use Hasicorp Consul to secure our k8s mesh. As part of that process, I had used to the |
can you please detail what you have done |
Should we reach a conclusion about the root cause? and how can this be avoided in the future? |
Ran into this issue as well; in my case I deployed multiple ingress controllers in different namespaces and created 2 different ValidatingWebhookConfiguration (as they are non name-spaced cluster wide). What fixed it (for me) was deleting both ValidatingWebhookConfiguration and then re-apply CA patches for each one. |
We also ran into this issue when reinstalling the nginx ingress via a customized Helm chart. The ingress deployment went fine, but any ingress object would get the x509 signed by unknown certificate authority error, and the validationwebhookconfiguration had no caBundle prior to fixing. Our customized Helm chart uses nginx ingress helm chart version 4.4.x, according to the dependencies. Controller image tagged at version 1.5.1. |
For anyone banging their heads against this: TLDR: Metallb/Loadbalancer was not running/working correctly causing the service not to be available. TLS/x509errors threw me on a wild goose chase. My only indication was that the service created by nginx-ingress was not put in a ready state ( nothing apparent except ArgoCD saying it wasnt ). |
I faced the same issue after having kille the Ingress controller pod. When it got recreated a deployed Jaeger operator complaind not being able to call the ingress-nginx-controller-admission webhook on port 443. After I applied the patch, all was fine again. |
this seems to occur even in the latest version. |
Also facing this issue with |
xref: kubernetes/ingress-nginx#5968 (comment) Signed-off-by: Tamal Saha <tamal@appscode.com>
When managing ingress-nginx Helm chart with Argo CD, the job for patching the admission webhook certificate won't work because Argo CD doesn't fully support Helm hooks. Instead, leverage Argo CD's built-in resource hook for a smoother integration. These hooks automate injecting the CA certificate from Secret into the Here's the Fix (values.yaml): controller:
admissionWebhooks:
annotations:
argocd.argoproj.io/hook: PostSync |
@blackbass64 This fix also worked great for me, but I believe the values.yaml file needs a correction. It should be:
|
WORKS Like a Charm |
xref: kubernetes/ingress-nginx#5968 (comment) Signed-off-by: Tamal Saha <tamal@appscode.com>
The text was updated successfully, but these errors were encountered: