Open gurpreetkandola opened 3 years ago
Having the same issue.
Currently it looks like the issue occurs from this line https://github.com/banzaicloud/terraform-provider-k8s/blob/master/k8s/provider.go#L290
Not sure why, though
hi there, I am getting same error when i changed direct kubernetes endpoint cluster IP to load balance endpoint cluster ip. LB endpoint ip is reaching to k8s master node. But plugin still crashes.
I have the same issue. I'm getting this after I deleted kubeconfig When I ran command aws eks --region us-west-1 update-kubeconfig --name clustername and run again, issue resolved. But in my case I need to run any providers without any kubeconfigs with similar construction: provider "k8s" { host = aws_eks_cluster.example.endpoint cluster_ca_certificate = base64decode(aws_eks_cluster.example.certificate_authority.0.data) exec { api_version = "client.authentication.k8s.io/v1alpha1" args = ["eks", "get-token", "--cluster-name", aws_eks_cluster.example.name] command = "aws" } }
Having the same issue, rolling back to version: 0.8.2
fixed the problem for me.
Provider config:
provider "k8s" {
host = var.cluster_endpoint
cluster_ca_certificate = base64decode(var.cluster_certificate_authority_data)
exec {
api_version = "client.authentication.k8s.io/v1alpha1"
args = ["eks", "get-token", "--cluster-name", var.cluster_name]
command = "aws"
}
}
Another "fix" was running this command: aws eks --region us-west-1 update-kubeconfig --name clustername
as mentioned by @LevinDmytro2
Describe the bug The terraform-provider-k8s_v0.9.1 plugin crashed
Steps to reproduce the issue: Set k8s provider in terraform:
And tried to deploy manifest k8s resource
Expected behavior Should apply manifest resource with no error