Rename kubeconfig file

This commit is contained in:
Khue Doan 2021-08-20 19:04:19 +07:00
parent e7cfe62b04
commit 6dad7761b0
3 changed files with 9 additions and 2 deletions

7
.gitignore vendored
View File

@ -1,6 +1,13 @@
book/
build/
terraform-*-tmp-*/
*.iso
*.jpg
*.log
*kubeconfig.yaml
.terraform*
backend.tfvars
ignition.json
terraform.tfstate*
terraform.tfvars

View File

@ -1,7 +1,7 @@
.POSIX:
.EXPORT_ALL_VARIABLES:
KUBECONFIG = ../infra/kube_config.yaml
KUBECONFIG = ../infra/kubeconfig.yaml
default: apply

View File

@ -69,7 +69,7 @@ resource "rke_cluster" "cluster" {
}
resource "local_file" "kube_config_yaml" {
filename = "${path.root}/kube_config.yaml"
filename = "${path.root}/kubeconfig.yaml"
sensitive_content = rke_cluster.cluster.kube_config_yaml
file_permission = "0600"
}