Skip to content

Restart the deployment when ConfigMaps are changed #5240

Answered by matheuscscp
powdermouse asked this question in Q&A
Discussion options

You must be logged in to vote

Yes, by using a Kustomize configMapGenerator. It appends a suffix to the ConfigMap name with a hash of the content, so whenever you change the content, the name will change as well and cause the Deployment to create a new ReplicaSet:

https://kubernetes.io/docs/tasks/manage-kubernetes-objects/kustomization/#configmapgenerator

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by matheuscscp
Comment options

You must be logged in to vote
0 replies
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