I am using kubernetes cluster with 20 worker node. I have set image pull policy as IfNotPresent to reduce creation time. Image is hosted on dockerhub.
When i update the image in dockerhub i need to clear cache from all 20 worker nodes. Currently i am doing docker pull on all 20 worker nodes to update latest image.
Is there any kubernetes native solution or any other best industry solution to update image on all nodes?
the best industry solution is to use a unique tag for each deployed image. change the image tag and k8s will handle the upgrade for you. you only have this problem because you want to use the same tag even though the image changes. Whatever the reason you think it's not worth explicitly versioning your image, you're wrong :P . Explicit versions are well work the effort of specifying them