Seal a secret
Create and seal a k8s secret in one pipeline
kubectl create secret generic mysecret --dry-run=client -n <ns> --from-literal=key=value -o yaml | kubeseal -o yaml > sealed.yaml
- tool
- sealed-secrets11 commands
More sealed-secrets commands
-
kubeseal --fetch-cert --controller-name=sealed-secrets > pub-cert.pemDownload the sealing certificate for offline operations
-
kubeseal --cert pub-cert.pem -o yaml < secret.yaml > sealed.yamlSeal without cluster access using pre-fetched certificate
-
kubectl get sealedsecret -AShow all SealedSecrets and their sync status
-
kubeseal --format=yaml < secret.yaml > sealed-secret.yamlEncrypt a Kubernetes Secret YAML into a SealedSecret
-
kubectl create secret generic mysecret --dry-run=client --from-literal=token=abc123 -o yaml | kubeseal --scope cluster-wide -o yamlCreate and seal a secret in cluster-wide scope