-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.tf
31 lines (24 loc) · 835 Bytes
/
main.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
provider "google" {
credentials = file("adfs-dev.json")
project = var.projeto
region = var.regiao
}
provider "google-beta" {
credentials = file("adfs-dev.json")
project = var.projeto
region = var.regiao
}
data "google_client_config" "provider" {
}
provider "kubernetes" {
host = "https://${google_container_cluster.cluster-uptime.endpoint}"
token = data.google_client_config.provider.access_token
config_path = "~/.kube/config_a.yaml"
client_certificate = base64decode(
google_container_cluster.cluster-uptime.master_auth[0].client_certificate,
)
cluster_ca_certificate = base64decode(
google_container_cluster.cluster-uptime.master_auth[0].cluster_ca_certificate,
)
client_key = base64decode(google_container_cluster.cluster-uptime.master_auth[0].client_key)
}