-
Notifications
You must be signed in to change notification settings - Fork 5
/
provider.tf
30 lines (26 loc) · 1.29 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
data "azurerm_kubernetes_cluster" "aks_cluster" {
name = azurerm_kubernetes_cluster.aks_cluster.name
resource_group_name = var.resource_group_name
depends_on = [
azurerm_kubernetes_cluster.aks_cluster
]
}
provider "azurerm" {
features {}
}
provider "kubernetes" {
apply_retry_count = 5
host = data.azurerm_kubernetes_cluster.aks_cluster.kube_config.0.host
client_certificate = base64decode(data.azurerm_kubernetes_cluster.aks_cluster.kube_config.0.client_certificate)
client_key = base64decode(data.azurerm_kubernetes_cluster.aks_cluster.kube_config.0.client_key)
cluster_ca_certificate = base64decode(data.azurerm_kubernetes_cluster.aks_cluster.kube_config.0.cluster_ca_certificate)
load_config_file = false
}
provider "kubectl" {
apply_retry_count = 5
host = data.azurerm_kubernetes_cluster.aks_cluster.kube_config.0.host
client_certificate = base64decode(data.azurerm_kubernetes_cluster.aks_cluster.kube_config.0.client_certificate)
client_key = base64decode(data.azurerm_kubernetes_cluster.aks_cluster.kube_config.0.client_key)
cluster_ca_certificate = base64decode(data.azurerm_kubernetes_cluster.aks_cluster.kube_config.0.cluster_ca_certificate)
load_config_file = false
}