-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathprovider.tf
46 lines (39 loc) · 1.18 KB
/
provider.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
terraform {
required_providers {
kubernetes = {
source = "hashicorp/kubernetes"
}
helm = {
source = "hashicorp/helm"
version = "2.3.0"
}
kubectl = {
source = "gavinbunney/kubectl"
version = "1.13.0"
}
}
}
data "google_client_config" "default" {
}
provider "kubernetes" {
host = "https://${var.host}"
token = data.google_client_config.default.access_token
client_certificate = base64decode(var.client_certificate)
client_key = base64decode(var.client_key)
cluster_ca_certificate = base64decode(var.cluster_ca_certificate)
}
provider "helm" {
kubernetes {
host = "https://${var.host}"
token = data.google_client_config.default.access_token
client_certificate = base64decode(var.client_certificate)
client_key = base64decode(var.client_key)
cluster_ca_certificate = base64decode(var.cluster_ca_certificate)
}
}
provider "kubectl" {
host = "https://${var.host}"
load_config_file = false
token = data.google_client_config.default.access_token
cluster_ca_certificate = base64decode(var.cluster_ca_certificate)
}