13 lines
405 B
HCL
13 lines
405 B
HCL
data "google_client_config" "primary" {}
|
|
|
|
provider "google" {
|
|
project = var.project
|
|
region = var.region
|
|
}
|
|
|
|
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)
|
|
}
|