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
60 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
• 6,890 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 in Docker by Ashish
2,436 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,100 points

edited Oct 16, 2018 by lina 3,752 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
• 9,530 points
300 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 in Docker by Sirajul
• 17,700 points
220 views
0 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
979 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 26, 2018 in Docker by shubham
• 6,890 points
110 views
+2 votes
6 answers