8 lines
354 B
Bash
Executable file
8 lines
354 B
Bash
Executable file
#!/bin/bash
|
|
echo ">>> write key to ./main.key"
|
|
kubectl get secret -n kube-system -l sealedsecrets.bitnami.com/sealed-secrets-key -o yaml > main.key
|
|
|
|
# https://github.com/bitnami-labs/sealed-secrets#how-can-i-do-a-backup-of-my-sealedsecrets
|
|
# restore with:
|
|
# kubectl apply -f main.key
|
|
# kubectl delete pod -n kube-system -l name=sealed-secrets-controller
|