Loki helm-chart installation with terraform

I have been having trouble deploying Loki via helm chart with terraform. Terraform gives me an error that the chart “grafana/loki” could not be found in “Grafana Community Kubernetes Helm Charts | helm-charts”. But installing the chart “manually” using helm install loki grafana/loki works fine.

I think this might have something to do with the Loki repo being separate from all of the other helm charts. As far as I can see there is only one helm chart repo, but different repos for the code.

Terraform code-snipet:

resource "helm_release" "loki" {
  name       = "loki"
  repository = "https://grafana.github.io/helm-charts"
  chart      = "grafana/loki"

  values = [
    file("${path.module}/../loki/values.yaml")
  ]
}

Any insight would be greatful.

Try changing chart to just Loki, perhaps? chart = "loki"

I have tried that. Then I get the error Error: could not download chart: Chart.yaml file is missing

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.