-
Notifications
You must be signed in to change notification settings - Fork 0
/
providers.tf
49 lines (41 loc) · 1.31 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
terraform {
cloud {
organization = "mioogbeni"
workspaces {
name = "tn-playground"
}
}
required_providers {
linode = {
source = "linode/linode"
version = "1.27.2"
}
helm = {
source = "hashicorp/helm"
version = "2.5.1"
}
kubernetes = {
source = "hashicorp/kubernetes"
version = "2.11.0"
}
time = {
source = "hashicorp/time"
version = "0.7.2"
}
}
}
provider "linode" {
# Configuration options
}
provider "kubernetes" {
host = yamldecode(base64decode(linode_lke_cluster.cluster.kubeconfig)).clusters[0].cluster.server
token = yamldecode(base64decode(linode_lke_cluster.cluster.kubeconfig)).users[0].user.token
cluster_ca_certificate = base64decode(yamldecode(base64decode(linode_lke_cluster.cluster.kubeconfig)).clusters[0].cluster.certificate-authority-data)
}
provider "helm" {
kubernetes {
host = yamldecode(base64decode(linode_lke_cluster.cluster.kubeconfig)).clusters[0].cluster.server
token = yamldecode(base64decode(linode_lke_cluster.cluster.kubeconfig)).users[0].user.token
cluster_ca_certificate = base64decode(yamldecode(base64decode(linode_lke_cluster.cluster.kubeconfig)).clusters[0].cluster.certificate-authority-data)
}
}