a little place I like to call home.

Quickly Updating Kubernetes Manifests

Feb. 20, 2021

Was recently looking for a quick way to update Kubernetes manifest files and came across this method which shows you how to do it both with yq and kustomize:

My solution used his first version which is using Very awesome BTW.

For my script I ended up doing something like this:

cat scripts/

GIT_SHA=$(git rev-parse --short HEAD)

yq w -i all-in-one.yml 'spec.template.spec.containers[0].image' \

comments powered by Disqus