Update output.tf, terraform.tf
This commit is contained in:
@@ -1,8 +1,3 @@
|
|||||||
resource "local_file" "kubeconfig" {
|
|
||||||
filename = "config"
|
|
||||||
content = base64decode(linode_lke_cluster.foobar.kubeconfig)
|
|
||||||
}
|
|
||||||
|
|
||||||
output "kubeconfig" {
|
output "kubeconfig" {
|
||||||
value = linode_lke_cluster.foobar.kubeconfig
|
value = linode_lke_cluster.foobar.kubeconfig
|
||||||
sensitive = true
|
sensitive = true
|
||||||
|
|||||||
@@ -33,6 +33,11 @@ resource "linode_lke_cluster" "foobar" {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
resource "local_file" "kubeconfig" {
|
||||||
|
filename = "config"
|
||||||
|
content = base64decode(linode_lke_cluster.foobar.kubeconfig)
|
||||||
|
}
|
||||||
|
|
||||||
provider "kubernetes" {
|
provider "kubernetes" {
|
||||||
config_path = local_file.kubeconfig.filename
|
config_path = local_file.kubeconfig.filename
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user