https://pulumi.com logo
#general
Title
# general
s

sticky-thailand-14236

05/30/2020, 11:36 PM
Hey guys/gals, is there away to periodically update deployments (kubernetes)? basically pull a new "latest" image and deploy.
k

kind-mechanic-53546

05/31/2020, 5:12 AM
Personally, I never use the latest tag, rather, i use a specific version and then update that (in config) That way, I can be sure that I'm using the same tested version each time NOTE: This workflow is a work-in-progress, not in production yet :)
s

sticky-thailand-14236

05/31/2020, 12:20 PM
no i get it, i was thinking the same thing. use a specific tag as a config variable to then run
pulumi up -y
latest
is bad practice.
i was just hoping there was a feature i had missed to "refresh" deployments
a

ancient-megabyte-79588

06/01/2020, 9:32 PM
There are use-cases where I think using a
latest
is ok. As an example, I have a report that is a static set of files, build as part of an nginx container image. I can simply trigger a rolling update and get
latest
image. Here is an SO article that gives a whole bunch of options, including patching the contain image name with a new buildId-based tag. https://stackoverflow.com/questions/40366192/kubernetes-how-to-make-deployment-to-update-image
This is certainly easy.
Copy code
kubectl rollout restart deployment/demo