-
Notifications
You must be signed in to change notification settings - Fork 116
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
HCCM not able to extract previosly generated (managed) TLS certificate #709
Comments
The certificate has a label $ service_uid=$(kubectl get service -n traefik traefik -o=go-template --template='{{ .metadata.uid }}')
$ echo $service_uid
$ hcloud certificate add-label --overwrite https-certificate hcloud-ccm/service-uid=$service_uid |
It sounds like a good workaround but, in fact, is a workaround. No? |
Yea, we need a better way to associate the cert with the service and potentially clean it up when necessary. |
Suggestions by @micheljung in #596:
|
This issue has been marked as stale because it has not had recent activity. The bot will close the issue if no further action occurs. |
problem still exists |
TL;DR
It seems that HCCM is not able to see that a certificate already exists (already created by HCCM from a re-created Service or from another Service).
If it already exists then it fails and the Services in the load balancer are not produced
Expected behavior
I expect HCCM not to fail if the certificate already exists and was created by itself.
Observed behavior
When I create the Service (annotations below) for the first time I can see the new certificate in the Hetzner Certificate section
Due to that I can see that HCCM populates even the Services section of my Hetzner Load Balancer. Everything works fine
If i destroy and recrete my service, than HCCM reports these errors
Seems like it can't detect that the certificate already exists and it fails.
If I delete the certificate nothing more happens but then If I delete and re-create the Service so HCCM "wake up" and recreated the certificate correctly (with Services in LB).
Minimal working example
Services with these annotations
Log output
The text was updated successfully, but these errors were encountered: