-
Notifications
You must be signed in to change notification settings - Fork 1.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
modules/private-cluster endpoint incorrect #828
Comments
The module is providing the public endpoint. You can also look up the private endpoint if you need it. |
Thank you. I can get the private IP by running a describe on the cluster but is there a way to output it from the module or with terraform. I'm hoping to use terraform for the Helm deploy too and I need to provide the endpoint in the provider. I was expecting to do something like this |
We should probably output the You can also use the |
Thanks for your quick reply and work on this module, it's great! |
If you are using the beta-private-cluster module, there's a flag called
If this flag is set, A possible improvement could be to return both, the public and the private endpoint as module outputs. This way, the caller can decide which one to use for any follow-up operations. |
As @morgante pointed out, the values are already available. The module should just return both endpoints or the whole cluster as an output. In my cluster, which currently has a private and public endpoint (not exclusively private at the moment) it looks like this:
The auth module is great and could be improved by adding a flag |
Private cluster config should be 0 or 1 values, so if it's present we can safely take the private endpoint. |
I have tried |
Sorry if I've got the wrong end of the stick here but I am having a problem with my private clusters. I've been having this problem with my own project and decided to run the example project (https://github.com/terraform-google-modules/terraform-google-kubernetes-engine/tree/master/examples/private_zonal_with_networking) but I get the same result.
If I look in the GCP UI at the cluster it tells me the endpoint is
172.16.0.2
which is what I would expect but the output within terraform has the endpoint104.196.20.229
The text was updated successfully, but these errors were encountered: