Helm

The helm resource allows Helm charts to be provisioned to kubernetes_cluster resources.

Examples

resource "helm" "consul" {
  cluster = resource.k8s_cluster.k3s

  repository {
    name = "hashicorp"
    url  = "https://helm.releases.hashicorp.com"
  }

  chart   = "hashicorp/consul"
  version = "v0.40.0"

  values = "./helm/consul-values.yaml"

  health_check {
    timeout = "240s"
    pods = [
      "component=connect-injector",
      "component=client",
      "component=controller",
      "component=server",
    ]
  }
}
resource "helm" "vault" {
  cluster = resource.k8s_cluster.k3s
  chart = "github.com/hashicorp/vault-helm"

  values_string = {
    "server.dataStorage.size" = "128Mb"
  }
}
resource "helm" "vault" {
  cluster = resource.k8s_cluster.k3s
  chart   = "./files/helm/vault"

  values_string = {
    "server.dataStorage.size" = "128Mb"
  }
}

Last updated