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
I created a private cluster wie the official private-cluster and auth modules. After updating the modules terraform tries to connect to it on localhost.
Expected behavior
I expect terraform to authenticate against the cluster and correctly and connect to the privtate cluster on it's public api endpoint.
Observed behavior
Error: Get "http://localhost/api/v1/namespaces/redacted": dial tcp [::1]:80: connect: connection refused
with kubernetes_namespace.redacted,
on kubernetes.tf line 99, in resource "kubernetes_namespace" "tls":
line: resource "kubernetes_namespace" "redacted" {
I finally found a workaround after reading https://stackoverflow.com/a/76219587/246241.
A partial apply on the module fixes this the time being (probably until the next change on the cluster):
TL;DR
I created a private cluster wie the official
private-cluster
andauth
modules. After updating the modules terraform tries to connect to it on localhost.Expected behavior
I expect terraform to authenticate against the cluster and correctly and connect to the privtate cluster on it's public api endpoint.
Observed behavior
Terraform Configuration
Terraform Version
Additional information
The cluster has been running for about two years. GKE, terraform, terraform modules have been updated multiple times.
The text was updated successfully, but these errors were encountered: