Say we have this in a deployment.yml
containers:
- name: my_container
imagePullPolicy: Always
image: my_image:latest
and so redeployment might take the form of:
kubectl set image deployment/my-deployment my_container=my_image
which I stole from here:
https://stackoverflow.com/a/40368520/1223975
my question is - is this the right way to do a rolling-update? Will the above always work to make sure the deployment gets the new image? My deployment.yml might never change - it might just be my_image:latest
forever, so how to do rolling updates?