Difference between revisions of "Terraform resource: helm release"

From wikieduonline
Jump to navigation Jump to search
Line 44: Line 44:
 
   chart      = "test-chart"
 
   chart      = "test-chart"
 
  }
 
  }
 +
 +
 +
== Errors ==
 +
* <code>[[Error: unable to build kubernetes objects]]</code>
 +
* <code>[[Error: XXXXX has no deployed releases]]</code>
  
 
== Related ==
 
== Related ==
* <code>[[Error: unable to build kubernetes objects]]</code>
 
 
* <code>[[set]]</code>
 
* <code>[[set]]</code>
 
* <code>[[helm install]]</code>
 
* <code>[[helm install]]</code>

Revision as of 14:14, 25 January 2024

helm_release [1]


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"
  }
}
resource "helm_release" "example" {
 name        = "testchart"
 namespace   = "helm_registry"
 repository  = "oci://localhost:5000/helm-charts"
 version     = "1.2.3"
 chart       = "test-chart"
}


Errors

Related

See also

  • https://registry.terraform.io/providers/hashicorp/helm/latest/docs/resources/release
  • Advertising: