27 lines
831 B
Terraform
27 lines
831 B
Terraform
|
|
#off-01: variable "kubeconfig_path" {
|
||
|
|
#off-01: type = string
|
||
|
|
#off-01: description = "Path to the kubeconfig file"
|
||
|
|
#off-01: }
|
||
|
|
provider "kubectl" {
|
||
|
|
#off-01: config_path = var.kubeconfig_path
|
||
|
|
host = var.cluster_endpoint
|
||
|
|
cluster_ca_certificate = base64decode(var.cluster_ca_cert)
|
||
|
|
token = var.cluster_token
|
||
|
|
}
|
||
|
|
|
||
|
|
provider "kubernetes" {
|
||
|
|
#off-01: config_path = var.kubeconfig_path
|
||
|
|
host = var.cluster_endpoint
|
||
|
|
cluster_ca_certificate = base64decode(var.cluster_ca_cert)
|
||
|
|
token = var.cluster_token
|
||
|
|
}
|
||
|
|
|
||
|
|
provider "helm" {
|
||
|
|
kubernetes {
|
||
|
|
#off-01: config_path = var.kubeconfig_path
|
||
|
|
host = var.cluster_endpoint
|
||
|
|
cluster_ca_certificate = base64decode(var.cluster_ca_cert)
|
||
|
|
token = var.cluster_token
|
||
|
|
}
|
||
|
|
}
|