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,324 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,360 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,050 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
14,524 views
+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,360 points

reshown Apr 12, 2019 by Kalgi 5,977 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,360 points
379 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,360 points
6,111 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