Restart pods when configmap updates in Kubernetes

0 votes
I'm trying to rolling start my deployment. Is there a way to restart pods when configmap is updated?
Aug 31, 2018 in Kubernetes by lina
• 8,220 points

2 answers to this question.

0 votes

You can update a metadata label that is not relevant for your deployment. it will trigger a rolling-update

for example:

    configmap-version: 1
answered Aug 31, 2018 by Kalgi
• 52,370 points
0 votes

Use Deployments, and consider your ConfigMaps to be immutable.

When you want to change your config, make a new file called configmap and make chnages to that file and point your deployment to this new updated configmap file.

answered Aug 31, 2018 by Nilesh
• 7,040 points

Immutable ConfigMaps is the right approach for me, too.


setting new version configmap name in the deployment.yml, solves consistency problems too.

Related Questions In Kubernetes

0 votes
1 answer
0 votes
1 answer
+1 vote
1 answer
0 votes
3 answers

Error while joining cluster with node

Hi Kalgi after following above steps it ...READ MORE

answered Jan 17, 2019 in Others by anonymous
+4 votes
1 answer

Installing Web UI (Dashboard):kubernetes-dashboard on main Ubuntu 16.04.6 LTS (Xenial Xerus) server

Follow these steps: $ kubeadm reset $ kubeadm init ...READ MORE

answered Apr 12, 2019 in Kubernetes by Kalgi
• 52,370 points

reshown Apr 12, 2019 by Kalgi 3,623 views
0 votes
1 answer

Create kubernetes that manages pods in java

Fabric8's Kubernetes Client is using a generated ...READ MORE

answered Sep 5, 2018 in Kubernetes by Kalgi
• 52,370 points
+2 votes
2 answers

Kubernetes Pods in Pending State

Hey @Shyam, you get this error because ...READ MORE

answered Oct 31, 2018 in Kubernetes by Kalgi
• 52,370 points