Skip to content
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

lets make a kubernetes cronjob too #5

Open
rawlingsj opened this issue Mar 10, 2020 · 2 comments
Open

lets make a kubernetes cronjob too #5

rawlingsj opened this issue Mar 10, 2020 · 2 comments

Comments

@rawlingsj
Copy link
Member

Currently this runs as a kubernetes controller which is great because when a new secret is added the controller reacts and grabs the secret data from Google's Secret Manager (GSM). One problem with this is if a new secret version is created in GSM the controller doesnt update the k8s secret value because it's watching the k8s resources not GSM.

As an alternative to running the controller all the time and using resources when not needed we could run this as a k8s CronJob so that periodically it queries GSM and updates the k8s secrets. Any pod that has the secret mounted automatically gets the new data without needing to restart.

This seems like a good option to offer.

@jenkins-x-bot
Copy link
Contributor

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.
If this issue is safe to close now please do so with /close.
Provide feedback via https://jenkins-x.io/community.
/lifecycle stale

1 similar comment
@jenkins-x-bot
Copy link
Contributor

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.
If this issue is safe to close now please do so with /close.
Provide feedback via https://jenkins-x.io/community.
/lifecycle stale

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants