I'm trying to deploy
an HTTPD instance and a couch db instance using the same values.yaml
file
Is there a default document that can help me understand how to deploy two instances and there services using the same values.yaml
file?
Anyone with a sample helm directory with multiple deployments and services created?
You can use a --set flag in your Helm commands to override the value of a setting in the YAML file. Specify the name of the setting and its new value after the --set flag in the Helm command. The --set flag in the above command overrides the value for the <service>. deployment.
Yes, it's possible to have multiple values files with Helm. Just use the --values flag (or -f ). You can also pass in a single value using --set . --set (and its variants --set-string and --set-file): Specify overrides on the command line.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With