Seal a secret from a file
Encrypt a Kubernetes Secret YAML into a SealedSecret
kubeseal --format=yaml < secret.yaml > sealed-secret.yaml
- tool
- sealed-secrets11 commands
More sealed-secrets commands
-
kubectl create secret generic mysecret --dry-run=client --from-literal=token=abc123 -o yaml | kubeseal --scope cluster-wide -o yamlCreate a secret and seal it with cluster-wide scope, so it can be unsealed in any namespace
-
kubeseal --fetch-cert --controller-name=sealed-secrets --controller-namespace=kube-system > pub.pemSave the sealing certificate to encrypt secrets offline
-
kubeseal --cert pub.pem --format yaml < secret.yaml > sealed.yamlEncrypt without cluster access, using a saved cert
-
kubectl logs -n kube-system -l app.kubernetes.io/name=sealed-secrets -fFollow the controller logs to debug problems with unsealing
-
kubectl get sealedsecrets -AShow all SealedSecrets in all namespaces