Kubernetes and Sealed Secrets (Kubernetes)
PROBLEM: I would like to share my secrets to git SOLUTION: Use the Sealed Secretes (Installing kubeseal) Kubeseal is the CLI tool to manage sealed secret, is you are using macOS, you should use brew:
1 |
brew install kubeseal |
On (ubuntu based) linux you should be fine using:
1 2 |
wget https://github.com/bitnami-labs/sealed-secrets/releases/download/v0.9.6/kubeseal-linux-amd64 -O kubeseal sudo install -m 755 kubeseal /usr/local/bin/kubeseal && rm kubeseal |
Creating a secret There are different ways how to create a secret, I am using direct input (–from-literal) or direct YAML efinition. I will show both. Let’s assume I am deploying some application which will…