Reputation: 135
I have a pod attached to a daemonset node and which also contains several containers. I want to update the container images inside the pod. Therefore I am curious to know if restarting the the daemonset will do the job (because image Pull Policy is currently set to always) and restarting the daemonset will pull the new updated image. Is it the right way to do such things? Thanks.
Upvotes: 6
Views: 18604
Reputation: 15548
Use kubectl set image -n <namespace> daemonset <ds name> <container name>=<image>:<tag>
will do the trick and does not require restart command.
To see the update status kubectl rollout status -n <namespace> daemonset <ds name>
Upvotes: 2