tf-gke-test/providers.tf

21 lines
718 B
Terraform
Raw Normal View History

2023-05-03 14:52:20 +02:00
data "google_client_config" "primary" {}
provider "google" {
project = var.project
region = var.region
}
2023-05-03 14:52:20 +02:00
provider "kubernetes" {
host = "https://${google_container_cluster.primary.endpoint}"
token = data.google_client_config.primary.access_token
cluster_ca_certificate = base64decode(google_container_cluster.primary.master_auth.0.cluster_ca_certificate)
}
provider "helm" {
kubernetes {
host = "https://${google_container_cluster.primary.endpoint}"
token = data.google_client_config.primary.access_token
cluster_ca_certificate = base64decode(google_container_cluster.primary.master_auth.0.cluster_ca_certificate)
}
}