forked from evry-ace/kubernetes-on-air
-
Notifications
You must be signed in to change notification settings - Fork 0
/
providers.tf
75 lines (69 loc) · 2.15 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
terraform {
required_providers {
azurerm = "~> 2"
google = "~> 3"
google-beta = "~> 3"
external = "~> 1"
helm = "~> 1"
kubernetes = "~> 1"
local = "~> 1"
null = "~> 2"
random = "~> 2"
template = "~> 2"
tls = "~> 2"
}
}
provider "google" {
project = var.google_project
region = var.google_region
zone = var.google_zone
}
provider "google-beta" {
project = var.google_project
region = var.google_region
zone = var.google_zone
}
data "google_client_config" "current" {}
provider "kubernetes" {
cluster_ca_certificate = base64decode(google_container_cluster.apps.master_auth[0].cluster_ca_certificate)
host = google_container_cluster.apps.endpoint
token = data.google_client_config.current.access_token
load_config_file = false
}
provider "helm" {
kubernetes {
cluster_ca_certificate = base64decode(google_container_cluster.apps.master_auth[0].cluster_ca_certificate)
host = google_container_cluster.apps.endpoint
token = data.google_client_config.current.access_token
load_config_file = false
}
}
//provider "azurerm" {
// features {}
//}
//
//provider "kubernetes" {
// alias = "aks"
//
// load_config_file = "false"
// host = module.aks.host
// username = module.aks.username
// password = module.aks.password
// client_certificate = base64decode(module.aks.client_certificate)
// client_key = base64decode(module.aks.client_key)
// cluster_ca_certificate = base64decode(module.aks.cluster_ca_certificate)
//}
//
//provider "helm" {
// alias = "aks"
//
// kubernetes {
// load_config_file = "false"
// host = module.aks.host
// username = module.aks.username
// password = module.aks.password
// client_certificate = base64decode(module.aks.client_certificate)
// client_key = base64decode(module.aks.client_key)
// cluster_ca_certificate = base64decode(module.aks.cluster_ca_certificate)
// }
//}