https://rancher.com/ logo
#general
Title
# general
a

adamant-kite-43734

02/21/2023, 6:54 PM
This message was deleted.
b

bulky-sunset-52084

02/21/2023, 7:33 PM
you have to redeploy the containers you can use like a:
kubectl rollout restart <namespace/deployment name>
to quickly redeploy using the latest tag. Generally using latest as image tag is not recommended.
b

bumpy-printer-21267

02/21/2023, 7:34 PM
@bulky-sunset-52084 I understand the kubectl command, but is there a way for rancher to do this automatically upon having a new image pushed to docker hub? I'm pretty sure that was available in 1.6
b

bulky-sunset-52084

02/21/2023, 7:37 PM
I don't believe for latest if you change the deployment manifest in some way rancher CD (fleet) will notice the change on the gitrepo and kubernetes will redeploy. But this is more on the container platform (docker/containerd) if k8s doesn't see a change on the manifest it wont ask the runtime to pull the latest image
b

bumpy-printer-21267

02/21/2023, 7:37 PM
Got it. I'll put something together that runs in the background and performs the redeploy. Thanks.
6 Views