- Add the
ingress-nginxchart
helm repo add ingress-nginx https://kubernetes.github.io/ingress-nginx
helm repo update
helm install nginx-ingress ingress-nginx/ingress-nginx --namespace ingress-nginx --create-namespace- Check if you have pods running in the
kubectl get pods -n ingress-nginx-
Add the Sealed Secrets Helm Chart Repo (if haven't added it yet):
helm repo add sealed-secrets https://bitnami-labs.github.io/sealed-secrets helm repo update
-
Install the Sealed Secrets Controller using Helm:
helm install sealed-secrets sealed-secrets/sealed-secrets --namespace kube-system
This installs the Sealed Secrets controller in the
kube-systemnamespace. -
kubeseal command to encrypt the secret:
cat secret.yaml | kubeseal --controller-namespace kube-system --controller-name sealed-secrets-controller --format yaml > sealed-secret.yaml-
Verify
kubectl get secret db-secret -n kube-system
-
See Secret
kubectl get secrets kubectl get secret DATABASE_URL -o json