Update output.tf, terraform.tf
This commit is contained in:
24
output.tf
24
output.tf
@@ -2,4 +2,26 @@ resource "local_file" "kubeconfig" {
|
||||
depends_on = [linode_lke_cluster.foobar]
|
||||
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
|
||||
}
|
||||
|
||||
@@ -34,7 +34,7 @@ resource "linode_lke_cluster" "foobar" {
|
||||
}
|
||||
|
||||
provider "kubectl" {
|
||||
config_path = "kube-config"
|
||||
config_path = "./kube-config"
|
||||
load_config_file = true
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user