How to Handle Secrets in Helm

Tiexin Guo
4th Coffee
Published in
16 min readOct 25, 2023

--

Tibet

Learn step-by-step techniques and best practices to handle secrets in Helm charts safely and effectively. Level up your Helm deployments today! Get started now.

1 Helm Chart and Helm Secrets

Kubernetes (K8s), an open-source container orchestration system, has become the de-facto standard for running containerized workloads because of its scalability and resilience.

Although K8s has the capabilities to streamline deployment processes, the actual deployment of applications can be cumbersome, since deploying an app to a K8s cluster typically involves managing multiple K8s manifests (like Deployment, Service, ConfigMap, Secret, Ingress, etc.) in YAML format. This isn’t ideal because it introduces additional operational overhead due to the increased number of files for one app. Moreover, it often leads to duplicated, copy-pasted sections of the same app across different environments, making it more susceptible to human errors.

Helm, a popular package manager for Kubernetes, is designed to solve these deployment issues and help us manage K8s apps. Helm provides a straightforward way to define, install, and upgrade apps on K8s clusters with reusable templates called Helm charts, which encapsulate all the necessary K8s manifests, configurations, and dependencies into one single package, making it a whole…

--

--