You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a couple of concerns about how to specify versions using k8s-deploy. I'd be happy to make changes, just want to lay out my case and get feedback first.
k8s-deploy works by seding :latest out of a deployment file. This is overly broad, because it doesn't allow two images with the version :latest
in production, services should not be using the latest tag for images at all, IMO. They should use either a branch name, like production, or a specific build id, like a commit sha or branch+buildnum, like production-123.
proposal:
in deploy-service, make the sed specific enough to match a single image, like image: ${DOCKER_IMAGE}:(.+)$
capture the image tag in the sed expression, so the existing script is free to use a value other than latest in the checked-in deployment.yml
The text was updated successfully, but these errors were encountered:
Do you have an example of using multiple images using :latest in the same deployment that you would want to SED to different values? I would think that's not that common.
In that app, I'm using the same nginx image for every release, but the relevant configmap changes on each deploy. To force kubernetes to do a rolling deploy, I need to modify the Deployment object... and I'm using ENV for this. It's a hack, I'm not happy about it, but it works.
I DO agree that being able to specific the image tag in the sed expression would be more explicit. Maybe if you don't specify (in the configfile?), then we default to :latest
I have a couple of concerns about how to specify versions using k8s-deploy. I'd be happy to make changes, just want to lay out my case and get feedback first.
sed
ing:latest
out of a deployment file. This is overly broad, because it doesn't allow two images with the version:latest
latest
tag for images at all, IMO. They should use either a branch name, likeproduction
, or a specific build id, like a commit sha or branch+buildnum, like production-123.proposal:
image: ${DOCKER_IMAGE}:(.+)$
latest
in the checked-in deployment.ymlThe text was updated successfully, but these errors were encountered: