G
G
grabbee2021-10-16 04:48:57
Kubernetes
grabbee, 2021-10-16 04:48:57

How to automatically save kubeconfig after creating a cluster?

I create a cluster in the cloud through Terraform . Is it possible somehow in the same configuration to save the authorization data $HOME/.kube/configimmediately after its creation? The data seems to be immediately available there, but I don't know how to save it. I want to run Helm

charts in the same Terraform file after cluster creation , but it needs.kube/config

provider "helm" {
  kubernetes {
    config_path = "~/.kube/config"
  }
}

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question