-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathproviders.tf
54 lines (45 loc) · 1.24 KB
/
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
terraform {
required_providers {
google = {
source = "hashicorp/google"
version = "6.12.0"
}
kubernetes = {
source = "hashicorp/kubernetes"
version = "2.35.0"
}
helm = {
source = "hashicorp/helm"
version = "2.16.1"
}
cloudflare = {
source = "cloudflare/cloudflare"
version = "4.48.0"
}
}
}
provider "google" {
project = var.project_id
region = var.region
zone = var.zone
}
data "google_client_config" "default" {}
provider "kubernetes" {
host = "https://${google_container_cluster.gke.endpoint}"
token = data.google_client_config.default.access_token
cluster_ca_certificate = base64decode(google_container_cluster.gke.master_auth[0].cluster_ca_certificate)
ignore_annotations = [
"^autopilot\\.gke\\.io\\/.*",
"^cloud\\.google\\.com\\/.*"
]
}
provider "helm" {
kubernetes {
host = "https://${google_container_cluster.gke.endpoint}"
token = data.google_client_config.default.access_token
cluster_ca_certificate = base64decode(google_container_cluster.gke.master_auth[0].cluster_ca_certificate)
}
}
provider "cloudflare" {
api_token = var.cloudflare_api_token
}