Seal from stdin with scope
Create and seal a secret in cluster-wide scope
kubectl create secret generic mysecret --dry-run=client --from-literal=token=abc123 -o yaml | kubeseal --scope cluster-wide -o yaml
- tool
- sealed-secrets11 commands
More sealed-secrets commands
-
kubeseal --fetch-cert --controller-name=sealed-secrets --controller-namespace=kube-system > pub.pemSave the sealing certificate for offline encryption
-
kubeseal --cert pub.pem --format yaml < secret.yaml > sealed.yamlEncrypt without cluster access using saved cert
-
kubectl logs -n kube-system -l app.kubernetes.io/name=sealed-secrets -fStream controller logs to debug sealing issues
-
kubectl get sealedsecrets -AShow all SealedSecrets across namespaces
-
kubectl get secret mysecret -o yaml | kubeseal --format yaml > sealed-new.yamlFetch decrypted secret and re-encrypt with current key