kizniche / Mycodo

An environmental monitoring and regulation system
http://kylegabriel.com/projects/
GNU General Public License v3.0
2.94k stars 492 forks source link

kubectl apply -f kompose # working k8s manifests #1263

Open nargetdev opened 1 year ago

nargetdev commented 1 year ago

With the use of initContainers we are able to initialize data for the volumes from the contents of the Docker container for kubernetes cluster. docker compose does this normally, but we had to do it explicitly for k8s manifests.

Another small detail was the hostnames i.e. mycodo_flask, mycodo_daemon, etc. kubernetes doesn't like underscores for their DNS.. so I changed them all to mycodoflask, mycododaemon, etc.

P.S. it looks like I let some old commits slip in here. Let me know if you want me to re-clone and make a cleaner PR.

kizniche commented 1 year ago

Thanks for this. I've been doing a lot of traveling for work and haven't had a chance to review it all yet. Just jumping in to mention it's on my radar!