2026-01-03 03:47:18 +00:00
|
|
|
|
2026-01-25 21:38:27 +00:00
|
|
|
data "google_client_config" "default" {}
|
2026-01-03 03:47:18 +00:00
|
|
|
provider "google" {
|
|
|
|
|
credentials = file("~/.config/gcloud/application_default_credentials.json")
|
|
|
|
|
project = "devops-lab-cluster"
|
|
|
|
|
region = "us-central1" # Or your desired region/location
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
provider "helm" {
|
2026-01-25 21:38:27 +00:00
|
|
|
kubernetes {
|
2026-01-05 23:49:02 +00:00
|
|
|
host = "https://${google_container_cluster.primary.endpoint}"
|
2026-01-03 03:47:18 +00:00
|
|
|
token = data.google_client_config.default.access_token
|
2026-01-05 23:49:02 +00:00
|
|
|
cluster_ca_certificate = base64decode(google_container_cluster.primary.master_auth[0].cluster_ca_certificate)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
provider "flux" {
|
|
|
|
|
kubernetes = {
|
2026-01-25 21:38:27 +00:00
|
|
|
|
2026-01-05 23:49:02 +00:00
|
|
|
host = "https://${google_container_cluster.primary.endpoint}"
|
|
|
|
|
token = data.google_client_config.default.access_token
|
|
|
|
|
cluster_ca_certificate = base64decode(google_container_cluster.primary.master_auth[0].cluster_ca_certificate)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
git = {
|
|
|
|
|
|
|
|
|
|
url = "ssh://git@github.com/${var.github_org}/${var.github_repository}.git"
|
|
|
|
|
|
|
|
|
|
branch = "master"
|
|
|
|
|
ssh = {
|
|
|
|
|
username = "git"
|
|
|
|
|
private_key = (file("~/.ssh/gcloud-lab"))
|
|
|
|
|
}
|
2026-01-03 03:47:18 +00:00
|
|
|
}
|
|
|
|
|
}
|