-
Notifications
You must be signed in to change notification settings - Fork 303
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
Certificate update path is not clear #525
Comments
No, we currently do not watch secrets but it's something we can think about doing.
I'm not familiar w/ how Terraform manages certs. Does it take care of updating the Ingress spec for you? |
That's strange - today I tested it by changing the tls secret for an existing ingress, and after a few minutes the LB has automatically began using it. I used this command to compare the old and the new:
Could it be that Google's load balancer monitors it? My ingress definition:
Sorry for not making it clear. Terraform does not know anything about k8s/Ingress. I used Terraform to initialize the k8s cluster and create a static IP resource. I could also create a certificate resource, and use its name with For my other, non-k8s project, I used Terraform to also set up the loadbalancer. In that case, the certificate dynamic (random) name is ok - whenever cert is updated, it gets a new name, and the LB is updated with the new cert resource name before the old one is deleted. Problem is - I cannot set up a LB via Terraform that points to backend ports 32xxx, only to 80. Hence the confusion - if i use |
We periodically requeue every Ingress for processing (every 10 minutes I think). So its possible you updated the secret and then a couple minutes later the Ingress using it got requeued as expected, but not as a direct reaction to the secret update. |
@rramkumar1 if Ingress refreshes every 10 min, that's totally fine. LetsEncrypt certificates expire in 90 days, so as long as Ingress refreshes regularly, it will automatically pick up the updated secret. Could we document this behavior somehow? Not sure what the best place should be. I'm sure everyone who works with certs will face the same question. Thx! |
/kind documentation |
@nyurik How does this sound? "Changes to secrets are picked up periodically so if you modify the |
@nyurik Docs are published. If it's not clear enough, let me know so I can fix it. /close |
@rramkumar1: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Could someone clarify what happens during the certificate update:
Thx!
The text was updated successfully, but these errors were encountered: