mirror of
https://github.com/khuedoan/homelab.git
synced 2024-12-22 20:54:33 +07:00
Rename kubeconfig file
This commit is contained in:
parent
e7cfe62b04
commit
6dad7761b0
7
.gitignore
vendored
7
.gitignore
vendored
@ -1,6 +1,13 @@
|
||||
book/
|
||||
build/
|
||||
terraform-*-tmp-*/
|
||||
|
||||
*.iso
|
||||
*.jpg
|
||||
*.log
|
||||
*kubeconfig.yaml
|
||||
.terraform*
|
||||
backend.tfvars
|
||||
ignition.json
|
||||
terraform.tfstate*
|
||||
terraform.tfvars
|
||||
|
@ -1,7 +1,7 @@
|
||||
.POSIX:
|
||||
.EXPORT_ALL_VARIABLES:
|
||||
|
||||
KUBECONFIG = ../infra/kube_config.yaml
|
||||
KUBECONFIG = ../infra/kubeconfig.yaml
|
||||
|
||||
default: apply
|
||||
|
||||
|
@ -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"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user