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
7,633 views

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:

metadata:
  labels:
    configmap-version: 1
answered Aug 31, 2018 by Kalgi
• 52,350 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,060 points

Immutable ConfigMaps is the right approach for me, too.

app-configmap-v11

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
15,477 views
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
4,036 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,350 points
588 views
+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,350 points
7,277 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP