Created
April 17, 2022 13:49
-
-
Save auycro/e00b6d90548f85423d8013d440097d9e to your computer and use it in GitHub Desktop.
Helm Release example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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