Open davidalger opened 3 years ago
The workaround does not work for me.
TF 0.14.7 kubernetes-alpha v0.2.1
provider "kubernetes-alpha" {
cluster_ca_certificate = base64decode(module.eks.certificate_authority.0.data)
host = "https://${module.eks.endpoint}"
token = data.aws_eks_cluster_auth.eks.token
}
With 0.3.1, I get a different error. I have opened a new issue https://github.com/hashicorp/terraform-provider-kubernetes-alpha/issues/174
Terraform, Provider, Kubernetes versions
Affected Resource(s)
provider "kubernetes-alpha"
on GKETerraform Configuration Files
Steps to Reproduce
terraform apply
to spin up a workinggoogle_container_cluster
resourceterraform apply
Expected Behavior
The provider should accept the
endpoint
output as the existingkubernetes
andhelm
providers do, not requiring a fully qualified URL, but actually accepting a hostname as is implied from the name.Actual Behavior
Workaround
Prefix the endpoint with
https://
fully qualifying it as a URL and bingo, it all works and applies correctly.Important Factoids
google_container_cluster.k8s.endpoint
is an IP address string such as123.123.123.123
References
Community Note