How to create a helm chart to deploy multiple applications using the same value.yaml file
You need to put both services into one helm chart. So they will use only one same values.yaml
.
As a sample, I suggest you to look to stable/prometheus
helm chart. Right now it has five separated services:
$ tree
.
├── Chart.yaml
├── README.md
├── templates
│ ├── alertmanager-clusterrolebinding.yaml
│ ├── alertmanager-configmap.yaml
│ ├── alertmanager-deployment.yaml
│ ├── alertmanager-ingress.yaml
│ ├── alertmanager-networkpolicy.yaml
│ ├── alertmanager-pvc.yaml
│ ├── alertmanager-serviceaccount.yaml
│ ├── alertmanager-service.yaml
│ ├── _helpers.tpl
│ ├── kube-state-metrics-clusterrolebinding.yaml
│ ├── kube-state-metrics-clusterrole.yaml
│ ├── kube-state-metrics-deployment.yaml
│ ├── kube-state-metrics-networkpolicy.yaml
│ ├── kube-state-metrics-serviceaccount.yaml
│ ├── kube-state-metrics-svc.yaml
│ ├── node-exporter-clusterrolebinding.yaml
│ ├── node-exporter-daemonset.yaml
│ ├── node-exporter-serviceaccount.yaml
│ ├── node-exporter-service.yaml
│ ├── NOTES.txt
│ ├── pushgateway-deployment.yaml
│ ├── pushgateway-ingress.yaml
│ ├── pushgateway-service.yaml
│ ├── server-clusterrolebinding.yaml
│ ├── server-clusterrole.yaml
│ ├── server-configmap.yaml
│ ├── server-deployment.yaml
│ ├── server-ingress.yaml
│ ├── server-networkpolicy.yaml
│ ├── server-pvc.yaml
│ ├── server-serviceaccount.yaml
│ └── server-service.yaml
└── values.yaml