A Python 3 script to automate the creation of sealed Kubernetes secrets using kubeseal
.
-
Clone the project repository:
git clone https://github.com/cms-codes/sealegs.git
-
Verify the shebang path matches your Python 3 interpreter.
-
Run the script with the following parameters:
sealegs.py --name [SECRET NAME] --namespace [NAMESPACE] --from-file [SECRETS1] --from-file [SECRETS2] --from-file [...]
. Note that at minimum the secret name, namespace and one plaintext secrets file must be specified. -
The sealed secrets for each file will be printed to stdout.