Skip to content
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

Error: Post "http://localhost/api/v1/namespaces/cloudflared/secrets": dial tcp [::1]:80: connect: connection refused #166

Open
Agilitytime opened this issue Sep 6, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@Agilitytime
Copy link

Describe the bug

Cloudflare is not Working

To reproduce

Steps to reproduce the behavior:

I Create the Cluster with Make, also after an Redeploy i have this error.
Can somebody help me?

Thanks!

Expected behavior

module.cloudflare.kubernetes_secret.cert_manager_token: Creating...

│ Error: Post "http://localhost/api/v1/namespaces/cloudflared/secrets": dial tcp [::1]:80: connect: connection refused

│ with module.cloudflare.kubernetes_secret.cloudflared_credentials,
│ on modules/cloudflare/main.tf line 28, in resource "kubernetes_secret" "cloudflared_credentials":
│ 28: resource "kubernetes_secret" "cloudflared_credentials" {



│ Error: Post "http://localhost/api/v1/namespaces/external-dns/secrets": dial tcp [::1]:80: connect: connection refused

│ with module.cloudflare.kubernetes_secret.external_dns_token,
│ on modules/cloudflare/main.tf line 62, in resource "kubernetes_secret" "external_dns_token":
│ 62: resource "kubernetes_secret" "external_dns_token" {



│ Error: Post "http://localhost/api/v1/namespaces/cert-manager/secrets": dial tcp [::1]:80: connect: connection refused

│ with module.cloudflare.kubernetes_secret.cert_manager_token,
│ on modules/cloudflare/main.tf line 91, in resource "kubernetes_secret" "cert_manager_token":
│ 91: resource "kubernetes_secret" "cert_manager_token" {



│ Error: Post "http://localhost/api/v1/namespaces/global-secrets/secrets": dial tcp [::1]:80: connect: connection refused

│ with module.extra_secrets.kubernetes_secret.external,
│ on modules/extra-secrets/main.tf line 1, in resource "kubernetes_secret" "external":
│ 1: resource "kubernetes_secret" "external" {



│ Error: Post "http://localhost/api/v1/namespaces/monitoring-system/secrets": dial tcp [::1]:80: connect: connection refused

│ with module.ntfy.kubernetes_secret.ntfy_auth,
│ on modules/ntfy/main.tf line 1, in resource "kubernetes_secret" "ntfy_auth":
│ 1: resource "kubernetes_secret" "ntfy_auth" {


Operation failed: failed running terraform apply (exit 1)

@Agilitytime Agilitytime added the bug Something isn't working label Sep 6, 2024
@aschampion
Copy link

Terraform can't load your kubeconfig and therefore is using the default, which is localhost. Most likely this is because the execution context for your terraform workspace wasn't changed to "local" as instructed in step 3 of the docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants