Difference between revisions of "Terraform resource: helm release"

From wikieduonline
Jump to navigation Jump to search
Line 8: Line 8:
 
  }
 
  }
  
 +
<pre>
 +
resource "helm_release" "example" {
 +
  name      = "my-redis-release"
 +
  repository = "https://charts.bitnami.com/bitnami"
 +
  chart      = "redis"
 +
  version    = "6.0.1"
 +
 +
  values = [
 +
    "${file("values.yaml")}"
 +
  ]
 +
 +
  set {
 +
    name  = "cluster.enabled"
 +
    value = "true"
 +
  }
 +
 +
  set {
 +
    name  = "metrics.enabled"
 +
    value = "true"
 +
  }
 +
 +
  set {
 +
    name  = "service.annotations.prometheus\\.io/port"
 +
    value = "9127"
 +
    type  = "string"
 +
  }
 +
}
 +
</pre>
  
 
== Related ==
 
== Related ==

Revision as of 16:37, 18 January 2023

helm_release

Official examples

resource "helm_release" "example" {
  name  = "redis"
  chart = "https://charts.bitnami.com/bitnami/redis-10.7.16.tgz"
}
resource "helm_release" "example" {
  name       = "my-redis-release"
  repository = "https://charts.bitnami.com/bitnami"
  chart      = "redis"
  version    = "6.0.1"

  values = [
    "${file("values.yaml")}"
  ]

  set {
    name  = "cluster.enabled"
    value = "true"
  }

  set {
    name  = "metrics.enabled"
    value = "true"
  }

  set {
    name  = "service.annotations.prometheus\\.io/port"
    value = "9127"
    type  = "string"
  }
}

Related

See also

Advertising: