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}"
|
|
|
|
|
cluster_ca_certificate = base64decode(google_container_cluster.primary.master_auth[0].cluster_ca_certificate)
|
2026-02-02 23:20:46 +00:00
|
|
|
exec = {
|
|
|
|
|
api_version = "client.authentication.k8s.io/v1beta1"
|
|
|
|
|
command = "gke-gcloud-auth-plugin"
|
|
|
|
|
}
|
2026-01-05 23:49:02 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2026-02-02 23:20:46 +00:00
|
|
|
##provider "flux" {
|
|
|
|
|
##kubernetes = {
|
2026-01-25 21:38:27 +00:00
|
|
|
|
2026-02-02 23:20:46 +00:00
|
|
|
## host = "https://${google_container_cluster.primary.endpoint}"
|
|
|
|
|
## cluster_ca_certificate = base64decode(google_container_cluster.primary.master_auth[0].cluster_ca_certificate)
|
2026-01-05 23:49:02 +00:00
|
|
|
|
2026-02-02 23:20:46 +00:00
|
|
|
## exec = {
|
|
|
|
|
## api_version = "client.authentication.k8s.io/v1beta1"
|
|
|
|
|
## command = "gke-gcloud-auth-plugin"
|
|
|
|
|
## }
|
|
|
|
|
##}
|
2026-01-05 23:49:02 +00:00
|
|
|
|
2026-02-02 23:20:46 +00:00
|
|
|
## 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-05 23:49:02 +00:00
|
|
|
|