0
votes

I am managing my k8s cluster using terraform and has tiller version 0.10.4,

Now I made some changes in my terraform file. so when I run terraform init I am getting following error.

error initializing local helm home: Looks like "https://kubernetes-charts.storage.googleapis.com" is not a valid chart repository or cannot be reached: Failed to fetch https://kubernetes-charts.storage.googleapis.com/index.yaml : 403 Forbidden

So I change the stable url in my terraform file, and now it looks something like

data "helm_repository" "stable" {
  name = "stable"
  url = "https://charts.helm.sh/stable"
}

provider "kubernetes" {
  config_path = "kubeconfig.yaml"
}

provider "helm" {
  install_tiller = true
  version = "0.10.4"
  service_account = "tiller"
  namespace = "kube-system"

  kubernetes {
    config_path = "kubeconfig.yaml"
  }
}

But I am still getting the same error.

1
did you try with v0.10.6 instead of version = "0.10.4" ? github.com/hashicorp/terraform-provider-helm/issues/649Adiii
Adiii's suggestion of upgrading provider version seems like it should fix it? Fwiw though, after that I was getting 403s at tf apply stage for any stable charts, the only fix I found was to override the repository argument on each helm_release resourceeversMcc

1 Answers

1
votes

The old Google based Chart storage system has been decommissioned. But also Helm 2 is no longer supported at all and Helm 3 does not use Tiller. You can find a static mirror of the old charts repo on Github if you go poking, but you need to upgrade to Helm 3 anyway so just do that instead.