Blog

We're professional nerds who like to share our thoughts.

Improving Kubernetes deployments with Helm

by Sander Knape on Mar 15, 2019

I recently blogged about automated deployments to Kubernetes using GitLab. One of the steps required when automating deployments is replacing the Docker tag with the correct value in the Kubernetes Deployment. In that blog post, this looks like the following: deployment.yaml apiVersion:apps/v1kind:Deploymentmetadata:[]spec:template:spec:containers:image:sanderknape/go-hello-world:<VERSION>The string is then replaced in the GitLab pipeline as follows: sed -i "s/<VERSION>/${CI_COMMIT_SHORT_SHA}/g" deployment.yaml This grabs the short SHA hash of the current Git commit that is checked out.

Read More ยป