add age encryption related scripts

This commit is contained in:
2024-07-15 09:45:02 +10:00
parent 5a803b92bd
commit fe75874c7f
4 changed files with 3663 additions and 0 deletions

7
scripts/4.add-age-key.sh Normal file
View File

@@ -0,0 +1,7 @@
#!/bin/bash
set -e
cat /mnt/nfs/agekey/age.agekey |
kubectl create secret generic sops-age \
--namespace=argocd \
--from-file=age.agekey=/dev/stdin