-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dial tcp [::1]:80: connect: connection refused #2501
Comments
Probably related to hashicorp/terraform-provider-kubernetes#1028 |
Seeing the same issue. It is trying to hit localhost instead of the cluster for some reason... |
try using a datasource to get the kubeconfig, rather than the module output. now, in this case above, you're not using a datasource but the module output directly, and that may not be refreshed until after the provider is configured, hence you still have the issue. Instead, use the pattern set in the example:
and that should resolve the problem if the datasource is now refreshed before the provider is configured. |
This issue has been automatically marked as stale because it has been open 30 days |
This issue was automatically closed because of stale in 10 days |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Terraform Cloud [1.3.9]
aws = {
source = "hashicorp/aws"
version = ">= 4.28.0"
}
kubernetes = {
source = "hashicorp/kubernetes"
version = "2.10.0"
}
helm = {
source = "hashicorp/helm"
version = "2.5.1"
}
Reproduction Code [Required]
Steps to reproduce the behavior:
Running the deployment on Terraform Cloud.
Run instantly fails on
modules/helm/helm-tailscale.tf line 1, in resource "kubernetes_secret" "tailscale"
with the error:Error: Post "http://localhost/api/v1/namespaces/default/secrets": dial tcp [::1]:80: connect: connection refused
Then fails on
modules/helm/helm-tailscale.tf line 19, in resource "helm_release" "tailscale":
with the error:Error: release tailscale failed, and has been uninstalled due to atomic being set: timed out waiting for the condition
Expected behavior
Adds the Helm Chart to my EKS cluster
Actual behavior
Errors
Additional context
This is my EKS Cluster main.tf:
data "aws_caller_identity" "current" {}
The text was updated successfully, but these errors were encountered: