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,110 points
3,449 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
• 41,460 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
• 6,880 points

Related Questions In Kubernetes

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
3 answers

Error while joining cluster with node

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

answered Jan 17 in Others by anonymous
2,511 views
+3 votes
1 answer
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
• 41,460 points
32 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
• 41,460 points
2,029 views