-
Notifications
You must be signed in to change notification settings - Fork 1
/
providers.tf
32 lines (26 loc) · 839 Bytes
/
providers.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
32
# set project for the provider as a whole to avoid having to repeat it for each resource
provider "google" {
project = var.project
version = "~> 3.89.0"
}
provider "google-beta" {
project = var.project
version = "~> 3.89.0"
}
provider "random" {
version = "~> 3.1.0"
}
provider "null" {
version = "~> 3.1.0"
}
provider "kubernetes" {
version = ">= 2.6.0"
# instead use the cluster managed by this module
host = format("https://%s", local.cluster_endpoint)
token = data.google_client_config.default.access_token
cluster_ca_certificate = base64decode(local.cluster_ca_certificate)
}
locals {
cluster_endpoint = google_container_cluster.kubeflow_cluster.endpoint
cluster_ca_certificate = google_container_cluster.kubeflow_cluster.master_auth.0.cluster_ca_certificate
}