<p>I have a grafana dashboard running in a kubernetes cluster which is configured. yaml via a ConfigMap to use Azure AD to restrict access.</p>

<p>I would now like to parameterize the grafana.ini in that configmap so i can use different subdomains in my release pipeline like this:</p>

<pre><code>kind: ConfigMap
data:
  grafana.ini: |
    [server]
    root_url = https://{Subdomain}.domain/
    [...]
</code></pre>

<p>{Subdomain} should be replaced in the pipeline via arguments. In a "normal" kubernetes .yaml file I can just do something like </p>

<pre><code>[...]
host: {{ .Values.Subdomain }}.{{ .Values.Domain }}
[...]
</code></pre>

<p>to pass in arguments. This seems not to be working in the grafana.ini data section.</p>

<p>What is the correct syntax to pass an argument into the grafana configuration here?</p>

myaccforcoding
<p>You can overwrite INI config file with environment variable like this:</p>

<p><code>export GF_SERVER_ROOT_URL= https://{Subdomain}.domain/</code> </p>

<p>You can overwrite all of the configuration options with this convention:</p>

<p><code>GF_&lt;SectionName&gt;_&lt;KeyName&gt;</code></p>
