Unalble to pull a new container after upgrading Helm

0 votes

I have build a simple NodeJS API, then I pushed the Docker Image to a repo and deployed it to my k8s with Helm install which worked fine.

I have set the pullPolicy to Always.

Now what I am trying to do is to update the source code and deploy the updated version of my app. I c the version in all files, built and pushed the new Docker image and tried helm upgrade but it doesn't seems to work out. With helm list  revision was deployed but the changes to source code were not deployed. watch kubectl get pods also shows that no new pods were created the way you expect it with kubectl --apply...

I am unable to figure out that what am I doing wrong?

Apr 12, 2018 in Docker by Atul
• 10,240 points
776 views

1 answer to this question.

0 votes

If there are changes to roll out, Helm will roll out the change to Kubernetes objects. If you are using  :latest there is no change to be applied to the deployment file, ergo no pods will rolling update.To keep using latest, you need to add something like label with sha / version that will change and will cause deployment to get updated by helm.I hope your query would be resolved with this.

answered Apr 12, 2018 by shubham
• 7,340 points

Related Questions In Docker

0 votes
2 answers

How to edit file after I shell to a docker container?

You can even install it using a ...READ MORE

answered Apr 23, 2019 in Docker by Ashish
17,845 views
+4 votes
4 answers

How To Access a Service on Host From a Docker Container?

Adding to kalgi's answer, You can also ...READ MORE

answered Oct 16, 2018 in Docker by lina
• 8,220 points

edited Oct 16, 2018 by lina 34,135 views
0 votes
1 answer

How to run a docker command from inside the container?

You must have come across the /var/run/docker.sock file, ...READ MORE

answered Jun 28, 2018 in Docker by Sophie may
• 10,620 points
3,518 views
0 votes
2 answers

How to execute docker exec commande inside a docker container ?

You need to get inside the container ...READ MORE

answered Aug 13, 2019 in Docker by Sirajul
• 59,230 points
3,795 views
+2 votes
1 answer
+5 votes
7 answers

Docker swarm vs kubernetes

Swarm is easy handling while kn8 is ...READ MORE

answered Aug 27, 2018 in Docker by Mahesh Ajmeria
3,925 views
0 votes
1 answer

Enter in a Docker container already running with a new TTY?

Here is what you can try. For docker ...READ MORE

answered Oct 27, 2018 in Docker by shubham
• 7,340 points
2,249 views
+2 votes
6 answers

copy directories in docker container excluding any one directory

One of the way could be copy ...READ MORE

answered Dec 10, 2018 in Docker by Prateek
34,894 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