0Pricing
Helm Academy · Lesson

Templating Kubernetes Secret Resources

Rendering Secret objects without leaking values.

Charts Can Render Secrets

Sometimes your chart must produce a Kubernetes Secret object itself. Done carefully, you can template one without leaking the value.

The Secret Manifest Shape

A Kubernetes Secret is just a manifest with a data section. Each value under data must be Base64-encoded text.

apiVersion: v1
kind: Secret
metadata:
  name: db-credentials

All lessons in this course

  1. Why Secrets Do Not Belong in values.yaml
  2. Encrypting Values with helm-secrets and SOPS
  3. Pulling from External Secrets Operators
  4. Templating Kubernetes Secret Resources
← Back to Helm Academy