16 lines
648 B
Terraform
16 lines
648 B
Terraform
|
data "google_client_config" "primary" {}
|
||
|
|
||
|
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)
|
||
|
}
|
||
|
}
|