You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When creating a new EKS cluster from scratch with terraform, kuberhealthy is installed with the cluster URL from the previous run of terraform.
Steps to reproduce the behavior
terraform apply
# Clean up ELB
terraform destroy
# Check if everything is cleaned up
terraform apply
Expected behavior
Cluster is created and kuberhealthy is installed.
Actual behavior
Error: Kubernetes cluster unreachable: Get https://<old url>.gr7.us-east-1.eks.amazonaws.com/version?timeout=32s: dial tcp: lookup <old url>.gr7.us-east-1.eks.amazonaws.com on [2a02:908:2:a::1]:53: no such host
on .terraform/modules/eks-jx.health.jx-health/main.tf line 1, in resource "helm_release" "kuberhealthy":
1: resource "helm_release" "kuberhealthy" {
where <old url> is the cluster URL of the previous run. Note that kubeconfig is correctly updated with the new cluster when terraform aborts with the error message.
Maybe there is a missing dependency or race condition. The terraform log shows first
Workaround is probably to remove the previous kubeconfig entry after terraform destroy. I will try it out next time and add a comment to the cleanup procedure.
The latest version should fix that issue - the issue was that the helm provider was using outdated credentials. It should work now in the latest version, can someone try and confirm?
Summary
When creating a new EKS cluster from scratch with terraform, kuberhealthy is installed with the cluster URL from the previous run of terraform.
Steps to reproduce the behavior
Expected behavior
Cluster is created and kuberhealthy is installed.
Actual behavior
where
<old url>
is the cluster URL of the previous run. Note that kubeconfig is correctly updated with the new cluster when terraform aborts with the error message.Maybe there is a missing dependency or race condition. The terraform log shows first
and then much later
Terraform version
The output of
terraform version
is:Module version
1.11.0
Operating system
MacOS
The text was updated successfully, but these errors were encountered: