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

Automatically roll deployment when ConfigMap change #465

Closed
grglzrv opened this issue Sep 16, 2022 · 1 comment · Fixed by #472
Closed

Automatically roll deployment when ConfigMap change #465

grglzrv opened this issue Sep 16, 2022 · 1 comment · Fixed by #472

Comments

@grglzrv
Copy link
Contributor

grglzrv commented Sep 16, 2022

Description

Add annotation that will track configmap checksum. For example - automatically restart deployment's pod when Configmap change

For example:

annotation: checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}
Link: https://helm.sh/docs/howto/charts_tips_and_tricks/#automatically-roll-deployments

Use Case

If someone use GitOps tool like FluxCD, and update the configmap, FluxCD will detect this change and will update cm in Kubernetes, checksum of the configmap will be updated, it will trigger a restart deployment's pod automatically

Acceptance Criteria

Automatically restart deployment's pod when Configmap change

@grglzrv grglzrv changed the title implement automatically trigger restart of deployment's pod when Configmap change Automatically roll deployment when ConfigMap change Sep 16, 2022
@grglzrv
Copy link
Contributor Author

grglzrv commented Sep 23, 2022

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

Successfully merging a pull request may close this issue.

2 participants