-
Notifications
You must be signed in to change notification settings - Fork 1k
Closed
Labels
Description
Terraform version, Kubernetes provider version and Kubernetes version
Terraform version: v0.13.5
Kubernetes Provider version: v2.0.2
Kubernetes version: v1.19.3
Terraform configuration
provider "kubernetes" {
version = "~> 2.0"
host = var.ClusterEndpoint
cluster_ca_certificate = try(base64decode(var.ClusterCertData), "")
token = data.aws_eks_cluster_auth.cluster.token
load_config_file = false
}Error
Error: Kubernetes cluster unreachable: stat /home/cra/.kube/config: no such file or directory
Question
Before upgrading the Kubernetes provider to v2.0.2, we used v1.13.3. In the earlier version we used load_config_file = false because we provide the credentials directly, as shown above, and don't want it to try load a non-existent file. But in the later version this is deprecated.
How do we replicate the behaviour now, and can that please be added to the documentation because there is little information on this?
Tzrlk and rtoma