Quick and dirty way to convert a lot of environment variables into 1 secret + deployment file
This script will ingest a file of environment variables and convert them into a corresponding secrets and deployment file.
Modify this or use it as you please. I only created this for a close friend who didn't want to write out 60 environment variables in our transition to Kubernetes
- Clone
[email protected]:broadstone-connorbrady/k8s-secret-deployment-generator.git
- Run
npm i
- Copy
template-example.yaml
totemplate.yaml
- Modify the template to suit your needs
- Run
node index.ts
- Once completed, the secrets and deployment file will be under the generated
results_
folder
Contributions are always welcome
I don't have any red tape contributing process so if you want to add anything, just create a PR and let me know.