M
M
Maxim2020-03-21 23:48:05
Docker
Maxim, 2020-03-21 23:48:05

How to update k8s pod when updating container on Docker hub?

There is a cluster on EC2. The nodes of this cluster have pods that lift the docker container from the hub. The question is, how to automatically update and under when updating the container on the hub? Or will it pull up the changes itself if there is a :latest tag? Well, or not automatically, since I am now doing it through a stump deck, as it seems to me

kubectl scale deployment some-pod-name --replicas=0
after that i just do it again
kubectl apply -f pod-deployment.yaml

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vadim, 2020-03-22
@Viji

And call some kind of cron job and check if the hash of image has changed on the docker hub, and then pull the changes!

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question