jerry-hall / Tesla-Automation-Scheduler

Schedule tasks and commands to control your Tesla vehicle via the Tesla API. This is the extension that you wish came with the Tesla app!
1 stars 0 forks source link

Add required environment vars to pods #10

Open jerry-hall opened 3 years ago

jerry-hall commented 3 years ago

TODO:

Add environment variables to container:

Originally posted by @jerry-hall in https://github.com/jerry-hall/tesla-automation-scheduler/issues/4#issuecomment-783033221

jerry-hall commented 3 years ago

It seems there are a few ways I could add environment variables to containers. A config map comes to mind, however, it might be too much work for the 3 env vars I have.

This seems like it would be easier if I were deploying to Amazon EKS with terraform as I could set the environment variables in variables.tf. However, I'm pretty set on deploying to EC2 instances for the learning-value of this project.

So... that means I'll have to template values from the command line. Here's an example of how to do this: https://stackoverflow.com/questions/48296082/how-to-set-dynamic-values-with-kubernetes-yaml-file