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

terraform apply to remove gke module fails #208

Open
moredure opened this issue Jan 8, 2025 · 1 comment
Open

terraform apply to remove gke module fails #208

moredure opened this issue Jan 8, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@moredure
Copy link

moredure commented Jan 8, 2025

TL;DR

Plan: 0 to add, 0 to change, 9 to destroy.

│ Error: Get "http://localhost/api/v1/namespaces/arc-runners/secrets/gh-app-pre-defined-secret": dial tcp [::1]:80: connect: connection refused




│ Error: Get "http://localhost/api/v1/namespaces/arc-systems": dial tcp [::1]:80: connect: connection refused




│ Error: Kubernetes cluster unreachable: invalid configuration: no configuration has been provided, try setting KUBERNETES_MASTER environment variable




│ Error: Get "http://localhost/api/v1/namespaces/arc-runners": dial tcp [::1]:80: connect: connection refused




│ Error: Kubernetes cluster unreachable: invalid configuration: no configuration has been provided, try setting KUBERNETES_MASTER environment variable



Releasing state lock. This may take a few moments...

Expected behavior

Succussfuly destroyes resources corresponding to cluster

Observed behavior

Fails with missing env variable

Terraform Configuration

gke simple example

Terraform Version

Terraform v1.9.8
on darwin_arm64
+ provider registry.terraform.io/hashicorp/google v5.45.0
+ provider registry.terraform.io/hashicorp/google-beta v5.45.0
+ provider registry.terraform.io/hashicorp/helm v2.17.0
+ provider registry.terraform.io/hashicorp/kubernetes v2.35.1
+ provider registry.terraform.io/hashicorp/random v3.6.3

Your version of Terraform is out of date! The latest version
is 1.10.2. You can update by downloading from https://www.terraform.io/downloads.html

Additional information

No response

@moredure moredure added the bug Something isn't working label Jan 8, 2025
@moredure
Copy link
Author

moredure commented Jan 8, 2025

managed to resolve it with export KUBE_CONFIG_PATH=~/.kube/config

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

1 participant