Created
March 31, 2025 09:39
-
-
Save fourdollars/fdab97c7da29a2dd70f46a726daa9dfd to your computer and use it in GitHub Desktop.
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
terraform { | |
required_providers { | |
juju = { | |
source = "juju/juju" | |
version = "0.18.0" | |
} | |
} | |
} | |
provider "juju" {} | |
resource "juju_model" "development" { | |
name = "dev" | |
} | |
resource "juju_application" "hello-kubecon" { | |
name = "hello-kubecon" | |
model = juju_model.development.name | |
charm { | |
name = "hello-kubecon" | |
} | |
} | |
resource "juju_application" "zinc" { | |
name = "zinc" | |
model = juju_model.development.name | |
trust = true | |
charm { | |
name = "zinc-k8s" | |
} | |
} | |
resource "juju_application" "grafana" { | |
name = "grafana" | |
model = juju_model.development.name | |
trust = true | |
charm { | |
name = "grafana-k8s" | |
channel = "latest/stable" | |
} | |
} | |
resource "juju_application" "prometheus" { | |
name = "prometheus" | |
model = juju_model.development.name | |
trust = true | |
charm { | |
name = "prometheus-k8s" | |
channel = "latest/stable" | |
} | |
} | |
resource "juju_application" "parca" { | |
name = "parca" | |
model = juju_model.development.name | |
trust = true | |
charm { | |
name = "parca-k8s" | |
channel = "latest/stable" | |
} | |
config = { | |
enable-persistence = "true" | |
} | |
} | |
resource "juju_integration" "prometheus-grafana" { | |
model = juju_model.development.name | |
application { | |
name = juju_application.prometheus.name | |
endpoint = "grafana-source" | |
} | |
application { | |
name = juju_application.grafana.name | |
endpoint = "grafana-source" | |
} | |
} | |
resource "juju_integration" "prometheus-zinc" { | |
model = juju_model.development.name | |
application { | |
name = juju_application.prometheus.name | |
} | |
application { | |
name = juju_application.zinc.name | |
} | |
} | |
resource "juju_integration" "grafana-zinc" { | |
model = juju_model.development.name | |
application { | |
name = juju_application.grafana.name | |
} | |
application { | |
name = juju_application.zinc.name | |
} | |
} | |
resource "juju_integration" "parca-zinc" { | |
model = juju_model.development.name | |
application { | |
name = juju_application.parca.name | |
} | |
application { | |
name = juju_application.zinc.name | |
} | |
} | |
resource "juju_integration" "parca-prometheus" { | |
model = juju_model.development.name | |
application { | |
name = juju_application.prometheus.name | |
} | |
application { | |
name = juju_application.parca.name | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment