Fetch the public certificate
Save the sealing certificate to encrypt secrets offline
kubeseal --fetch-cert --controller-name=sealed-secrets --controller-namespace=kube-system > pub.pem
- tool
- sealed-secrets11 commands
More sealed-secrets commands
-
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
-
kubectl get secret mysecret -o yaml | kubeseal --format yaml > sealed-new.yamlTake the decrypted Secret from the cluster and seal it again with the current key
-
kubectl create secret generic mysecret --dry-run=client -n <ns> --from-literal=key=value -o yaml | kubeseal -o yaml > sealed.yamlCreate a Kubernetes Secret and seal it in one pipeline