In this blog post, we will walk through the process of using the Mittwald Kubernetes Secret Generator. This tool is a Kubernetes operator that can automatically create random secret data and manage Kubernetes secrets.


Managing secrets in Kubernetes can be complex, especially when many applications are running. The Mittwald Kubernetes Secret Generator simplifies this process by automatically generating and managing your secrets.


Before you begin, you’ll need to have the following:

  • A Kubernetes cluster up and running.
  • kubectl command-line tool installed and set up to communicate with your cluster.
  • Helm package manager installed.

Installing the Secret Generator

We will be using Helm to install the Mittwald Kubernetes Secret Generator.

  1. First, add the Mittwald chart repository to your Helm repos:
helm repo add mittwald
  1. Update your Helm repos:
helm repo update
  1. Install the Kubernetes Secret Generator:
helm install secret-generator mittwald/kubernetes-secret-generator

Using the Secret Generator

To use the Secret Generator, you must create a Secret resource with the annotation.

Here’s an example:

apiVersion: v1
kind: Secret
  annotations: "password"
type: Opaque

In this example, the Secret Generator will automatically create a secret with the key “password”.


The Mittwald Kubernetes Secret Generator is a powerful tool that can simplify the secrets management in your Kubernetes cluster. By automating the process of secret generation, you can ensure that your applications have the secrets they need without having to create and manage them manually. Happy deploying!