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

The Kubernetes provider appears to fallback to localhost cluster #1208

Closed
apeabody opened this issue Apr 8, 2022 · 2 comments
Closed

The Kubernetes provider appears to fallback to localhost cluster #1208

apeabody opened this issue Apr 8, 2022 · 2 comments
Assignees
Labels
bug Something isn't working upstream Work required on Terraform core or provider

Comments

@apeabody
Copy link
Collaborator

apeabody commented Apr 8, 2022

TL;DR

When using the asm submodule without a provider "kubernetes" {} it appears to silently fallback to localhost.

Expected behavior

Either require variables or clear failure reason

Observed behavior

The provider attempts to create a cluster namespace on localhost.

Terraform Configuration

module "asm" {
  source            = "terraform-google-modules/kubernetes-engine/google//modules/asm"
  project_id        = var.project_id
  cluster_name      = module.gke.name
  cluster_location  = module.gke.location
}

Terraform Version

Terraform v1.1.7

Additional information

#1205

@apeabody apeabody added the bug Something isn't working label Apr 8, 2022
@apeabody apeabody changed the title The Kubernetes provider appears to fall back to localhost cluster The Kubernetes provider appears to fallback to localhost cluster Apr 8, 2022
@apeabody apeabody self-assigned this Apr 8, 2022
@bharathkkb
Copy link
Member

As discussed offline lets start by adding an example provider config to the usage section https://github.com/terraform-google-modules/terraform-google-kubernetes-engine/tree/master/modules/asm#usage. Here is another example not related to asm but similar #1203

@apeabody
Copy link
Collaborator Author

Closing as we updated the sub-module user documentation and also reported to the upstream provider.

@apeabody apeabody added the upstream Work required on Terraform core or provider label Apr 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working upstream Work required on Terraform core or provider
Projects
None yet
Development

No branches or pull requests

2 participants