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,100 points
2,440 views

2 answers to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
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
• 36,220 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,900 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
681 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
• 36,220 points
21 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
• 36,220 points
1,463 views

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.