-
Notifications
You must be signed in to change notification settings - Fork 385
Variable Interpolation within Helm chart #1006
Comments
Hi @devilmind81 could you post your entire Helm values file? I assume you are using the built-in prometheus instance with Consul? |
Hi @david-yu , Waiting your feedback. |
hey @devilmind81, could you tell us a little more about what you're trying to do with the {{Service.Name}} {{Service.Namespace}} in that |
That comes from https://www.consul.io/docs/connect/observability/ui-visualization. Consul will fill that in when it's generating its dashboard URLs in the UI so it's not Helm that is expected to fill it in. |
From helm/helm#2798 You need to escape the
|
Hi @lkysow, |
Hi, |
Hi all,
using helm 0.31.1 chart to setup consul on gke cluster I have two issues:
Consul command I run:
helm install consul hashicorp/consul -f /home/user/test-consul/k8s/consul/config.yaml --version 0.31.1 -n consul
helm command failing with the folloqing error:
Error: template: consul/templates/server-statefulset.yaml:48:51: executing "consul/templates/server-statefulset.yaml" at <include (print $.Template.BasePath "/server-config-configmap.yaml") .>: error calling include: template: consul/templates/server-config-configmap.yaml:15:3: executing "consul/templates/server-config-configmap.yaml" at <tpl .Values.server.extraConfig .>: error calling tpl: error during tpl function execution for "\n{\n \"ui_config\": {\n \"enabled\": true,\n \"metrics_provider\": \"prometheus\",\n \"metrics_proxy\": {\n \"base_url\": \"http://prometheus-server\"\n },\n \"dashboard_url_templates\": {\n \"service\" : \"http://myvirtualmachine:3000/d/4Z9CWegnz/poc-consul?orgId=1&var-service={{Service.Name}}&var-namespace={{Service.Namespace}}&var-dc={{Datacenter}}\"\n }\n }\n}\n": parse error at (consul/templates/server-statefulset.yaml:10): function "Service" not defined
How can I solve it?
Can you please support here?
Thank you!
The text was updated successfully, but these errors were encountered: