<p>If I understood your question correctly, you want to configure the &quot;Loki&quot; Helm chart when installing the &quot;Loki-Stack&quot; Helm chart.</p>
<p>The Loki-Stack Helm chart has several sub-charts (dependencies), each of which is available with its own name through the <code>values.yaml</code>: <a href="https://github.com/grafana/helm-charts/blob/main/charts/loki-stack/values.yaml" rel="nofollow noreferrer">https://github.com/grafana/helm-charts/blob/main/charts/loki-stack/values.yaml</a></p>
<p>So for example if you want to configure where Loki stores the logs, you would do that as follows <strong>in the loki-stack Helm Helm chart</strong>:</p>
<pre class="lang-yaml prettyprint-override"><code>loki: # &lt;-- extra nesting required to access values of sub-chart
  loki: 
    storage:
      type: 'filesystem'
</code></pre>
<p>Note that you need the extra &quot;loki&quot; entry to correctly pass the values to the sub-chart. Read me more here: <a href="https://helm.sh/docs/chart_template_guide/subcharts_and_globals/" rel="nofollow noreferrer">https://helm.sh/docs/chart_template_guide/subcharts_and_globals/</a></p>

CC BY-SA 4.0
2023-05-26T10:39:21.673Z
2023-05-26T10:39:21.673Z
JacksGT
<p>I need to install loki-stack to my k8s cluster, previously I need to change <code>retention_deletes_enabled</code> and <code>retention_period</code> in <code>charts/loki/values.yaml</code>.</p>
<p>What should I do to achieve this?</p>
<p>The problem is that there are several <code>values.yaml</code> files and I can't change loki values (<code>charts/loki/values.yaml</code>), I only can change the main <code>loki-stack/values.yaml</code> of this app when I create new application in Argo CD.</p>
<p>In general is it the correct way to clone the repo or doing <code>helm pull</code> then add this code to local git repository and create app from it?</p>
<p><a href="https://i.sstatic.net/8ARsb.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/8ARsb.png" alt="enter image description here" /></a></p>

<helm><argocd>
What is the corrrect way to install remote Helm applications via Argo CD?
VladF
# What is the corrrect way to install remote Helm applications via Argo CD?

(Asked by: username_0 on 2023-05-26)

I need to install loki-stack to my k8s cluster, previously I need to change `retention_deletes_enabled` and `retention_period` in `charts/loki/values.yaml`.

What should I do to achieve this?

The problem is that there are several `values.yaml` files and I can't change loki values (`charts/loki/values.yaml`), I only can change the main `loki-stack/values.yaml` of this app when I create new application in Argo CD.

In general is it the correct way to clone the repo or doing `helm pull` then add this code to local git repository and create app from it?

[![enter image description here](https://i.sstatic.net/8ARsb.png)](https://i.sstatic.net/8ARsb.png)

**Tags:** helm, argocd


---

## 1 answers

### Answer by username_1 on 2023-05-26. Score: 1 | Accepted answer

If I understood your question correctly, you want to configure the "Loki" Helm chart when installing the "Loki-Stack" Helm chart.
The Loki-Stack Helm chart has several sub-charts (dependencies), each of which is available with its own name through the values.yaml: https://github.com/grafana/helm-charts/blob/main/charts/loki-stack/values.yaml
So for example if you want to configure where Loki stores the logs, you would do that as follows in the loki-stack Helm Helm chart:
loki: # <-- extra nesting required to access values of sub-chart
  loki: 
    storage:
      type: 'filesystem'

Note that you need the extra "loki" entry to correctly pass the values to the sub-chart. Read me more here: https://helm.sh/docs/chart_template_guide/subcharts_and_globals/


---

