Skip to content
This repository has been archived by the owner on Mar 6, 2023. It is now read-only.

Using the option to add the certificates to a secret, restarting pods on renewal? #160

Answered by tnozicka
arizon-dread asked this question in Q&A
Discussion options

You must be logged in to vote

Hi,

As secrets are live mounted, the change will be seen also on disk so you could just wire life reload in your app. If you don't control it, a sidecar could send e.g. SIGHUP.

If you really want a rolling restart, you'd need a controller that hashes the secret content and places an annotation on you workload resource template.podSpec - that'll trigger a rolling restart. That's what some operators do when they don't control the payload to wire a live reload.

If not, could it be considered as a feature request?

This is a generic problem with kube and secrets, I don't think that's something we'd include in the controller. But it can be a standalone controller. (Maybe there are already some.)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@arizon-dread
Comment options

Answer selected by arizon-dread
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants