-
Notifications
You must be signed in to change notification settings - Fork 68
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
Controller unreachable after cert-manager certificates expire #701
Comments
I guess non of our components implement watching and reloading of the certificates. |
As an interim solution, I've deployed Reloader to my cluster, that watches for changes in dependent ConfigMap or Secret resources for deployments, daemonsets, or statefulsets, and performs a rolling update on pods when changes are seen. All that needs to be done is to patch the relevant linstor resources with the annotation required for the reloader controller to watch them. My LinstorCluster and LinstorSatelliteConfiguration resources now look like this:
It would still probably be better for piraeus-operator to handle the watch of certs and not have to deploy an additional resource to the cluster. Reloader is pretty handy for other applications outside of this particular use case as well though. |
I would like this to be implemented in the Piraeus operator. Each Satellite pod runs in its own daemonset. As a result, all satellites can be restarted simultaneously by Stakater Reloader. If something goes wrong during restart, we get all satellites down instead of one. Piraeus operator could handle that situation better since it knows more about Satellites. |
Environment details
Description
I've setup both the internal and api TLS using certmanager as described in how-to docs. It seems that the certificates are valid for 3 month upon issue. Certmanager renews the certificates automatically 1 month before expiry, but the deployed linstor pods still use the old certificates. When the original certificates expire, cluster communications are broken. I had to manually delete the controller, satellite and csi pods so that they spin up again using the renewed certs.
Desired behavior
Controller, satellite and csi pods should reload certs or restart after renewal.
The text was updated successfully, but these errors were encountered: