Hi, I'm new to Kubernetes and Helm chart, and I'm trying to deploy Grafana into kubenetes. I created my own parent chart, which includes the default grafana helm chart as the subchart.
the structure is as below: mygrafana-chart: - Chart.yaml - charts/ - grafana-0.8.0.tgz - requirements.yaml - templates/ - ingress.yaml - persistent-volumes.yaml - NOTES.txt - _helpers.tpl - values.yaml With the default grafana helm chart as the subchart ( https://github.com/kubernetes/charts/blob/master/stable/grafana), I'm able to deploy the grafana with my own ingress and PV yaml files. However, since the default values.yaml doesn't have "adminPassword" enabled (https://github.com/kubernetes/charts/blob/master/stable/grafana/values.yaml), I got a random password for admin every time I redeployed my grafana. adminUser: admin # adminPassword: strongpassword Now I hope to add "adminPassword" from my own value.yaml, and override this into the sub chart. I checked https://github.com/kubernetes/helm/blob/master/docs/chart_template_guide/subcharts_and_globals.md#overriding-values-from-a-parent-chart My requirement.yaml is as following: dependencies: - name: grafana version: 0.8.0 repository: https://kubernetes-charts.storage.googleapis.com Then I added the following lines into my values.yaml grafana: adminPassword: adminfoobar When I deployed the updated helm chart, my changes to the adminPassword was not applied as I expected. I'm not sure if the zip file under charts/ matters. The defualt secret.yaml from grafana helm chart is as below: apiVersion: v1 kind: Secret metadata: name: {{ template "grafana.fullname" . }} labels: app: {{ template "grafana.name" . }} chart: {{ template "grafana.chart" . }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} type: Opaque data: admin-user: {{ .Values.adminUser | b64enc | quote }} {{- if .Values.adminPassword }} admin-password: {{ .Values.adminPassword | b64enc | quote }} {{- else }} admin-password: {{ randAlphaNum 40 | b64enc | quote }} {{- end }} So it seems like the "adminPassword" added to my own values.yaml was not overriding to the subchart's values.yaml, so the secret.yaml still takes the random characters. Any suggestions or help are appreciated! Thanks, - Xuan -- You received this message because you are subscribed to the Google Groups "Kubernetes user discussion and Q&A" group. To unsubscribe from this group and stop receiving emails from it, send an email to kubernetes-users+unsubscr...@googlegroups.com. To post to this group, send email to kubernetes-users@googlegroups.com. Visit this group at https://groups.google.com/group/kubernetes-users. For more options, visit https://groups.google.com/d/optout.