-
Notifications
You must be signed in to change notification settings - Fork 2k
VirtualServer prevents cert-manager from creating a certificate #2069
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
Comments
I tried to overcome this issue by configuring the route path with a regular expression that doesn't match anything starting with The project documentation points to the nginx location block docs for more information about the path field. Therefore it was a bit surprising that the solution from this Stack Overflow answer didn't work. Apparently this project is using Go regex which doesn't support lookarounds. |
It seems I forgot to include the VirtualServerRoute in the first message:
Is anyone successfully running cert-manager with a similar configuration? |
@jannekem Have you tried the |
Hmm. That documentation talks about Ingress resources. Can you use that annotation with a |
In our short list is to make cert-manager |
That's great news! Is there an issue that I can follow somewhere? |
I was thinking I would link to this one. |
This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 10 days. |
This issue was closed because it has been stalled for 10 days with no activity. |
Initial support for VirtualServer was added in https://github.com/nginxinc/kubernetes-ingress/releases/tag/v2.2.0 |
This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 10 days. |
I see this issue was closed as completed but the initial cert-manager support introduced in v2.2.0 didn't include ACME so my problem still persists. Is ACME support somewhere on the roadmap? |
ACME challenge for VirtualServer was completed with the 2.3 release. |
Ah, I managed to miss that release since the PR wasn't linked to this issue. Thanks! |
I'm having an issue trying to get cert-manager and VirtualServer play nicely with each other after upgrading both to the latest version. Apparently this configuration has worked before. (I have changed the actual domain here.)
My certificate definition is something like this:
And the VirtualServer deployment looks something like this:
The location snippet contains configuration for basic authentication which is used in the dev environment, though it is disabled for the
/.well-known/acme-challenge/
path, and I'm not prompted for a password if I try to access that. The certificate requests fail with a 404 error, the cert-manager pod logs have this message:The ingress controller logs look like this:
cert-manager creates Ingress objects for the challenges
If I remove the VirtualServer the certificate request resolves immediately. Then I can create the VirtualServer again and use the updated certificate but I don't want to do this every two months for all environments.
Environment
AKS cluster running Kubernetes 1.21.2
cert-manager v1.5.4
NGINX Ingress Controller v2.0.0
Using NGINX
The text was updated successfully, but these errors were encountered: