Skip to content

Instantly share code, notes, and snippets.

@auycro
Created April 17, 2022 13:49
Show Gist options
  • Save auycro/e00b6d90548f85423d8013d440097d9e to your computer and use it in GitHub Desktop.
Save auycro/e00b6d90548f85423d8013d440097d9e to your computer and use it in GitHub Desktop.
Helm Release example
resource "helm_release" "mysql-db" {
name = "mysql-db"
repository = "https://charts.bitnami.com/bitnami"
chart = "mysql"
values = [
file("${path.module}/helmfiles/mysql-values.yaml")
]
}
resource "helm_release" "nodejs-app" {
name = "nodejs-app"
chart = "./charts/nodejs-mysql"
depends_on = [helm_release.mysql-db]
set {
name = "env.DB_HOST.value"
value = "mysql-db.default.svc.cluster.local"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment