Update output.tf, terraform.tf

This commit is contained in:
2022-09-25 01:32:38 +00:00
parent bfc775724d
commit cd8e11e4e4
2 changed files with 24 additions and 2 deletions

View File

@@ -3,3 +3,25 @@ resource "local_file" "kubeconfig" {
filename = "kube-config"
content = base64decode(linode_lke_cluster.foobar.kubeconfig)
}
output "kubeconfig" {
value = linode_lke_cluster.foobar.kubeconfig
sensitive = true
filename = kubeconfig.yaml
}
output "api_endpoints" {
value = linode_lke_cluster.foobar.api_endpoints
}
output "status" {
value = linode_lke_cluster.foobar.status
}
output "id" {
value = linode_lke_cluster.foobar.id
}
output "pool" {
value = linode_lke_cluster.foobar.pool
}

View File

@@ -34,7 +34,7 @@ resource "linode_lke_cluster" "foobar" {
}
provider "kubectl" {
config_path = "kube-config"
config_path = "./kube-config"
load_config_file = true
}