Cluster information:
Kubernetes version: 1.16.3
Cloud being used: bare-metal
Installation method: manual
Host OS: CoreOS
Hi all,
I am still stuck on the same problem and I am hoping someone can help explain these concepts.
Let’s imagine I have two Git repos:
Foo
|— config
| |— foo.conf
|— certs
|— foo.crt
Bar
|— config
|— bar.yaml
I also have a third repo which holds all my Kubernetes files which include the setup for both apps:
Kubernetes
|— Foo
| |— service.yaml
| |— network.yaml
| `— deployment.yaml
|— Bar
|— service.yaml
|— network.yaml
`— deployment.yaml
My questions are these:
-
How do you deploy to Kubernetes when your Application files (configs, certs) are in one repo and your Kubernetes configurations are in another? Part of the team want to add the config files to the app image but that seems wrong to me but I have to admit, I am unable to figure out how to do it another way.
-
I am also concerned on what work might need to be done when a config file is added to an app. I had a look at Helm and that could easily generate a new configMap but I imagine I still need to go into my deployment.yaml file and add the Volume and volumeMount. Is that correct?
-
What tools would you recommend I review to get to a point where I can make a change in Git and have it pushed to my Kubernetes cluster?
Thank you all for your time and patience with me