-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Cannot create PREMIUM google_compute_global_address when google_compute_project_default_network_tier set to STANDARD #15982
Cannot create PREMIUM google_compute_global_address when google_compute_project_default_network_tier set to STANDARD #15982
Comments
@glimberg does below doc explain why it chooses standard tier in your case? When creating a static regional external IP address, you can specify either PREMIUM or STANDARD for its network tier. If you don't specify a network tier, the address is created using the project default tier. |
I'm trying to create a GLOBAL PREMIUM ip address, not a regional external IP address. GKE ingresses require a global premium address. You can't do that with the "google_compute_address" resource, only the "google_compute_global_address" resource. |
Also, you can't specify a network tier for "google_compute_global_address" as there is no "network_tier" argument for it. |
I do see below statement in the doc
I think PREMIUM can be hard-coded for Global external IP addresses |
Either hard coded to PREMIUM, or exposing a It's a hard requirement in our project that the default network tier is STANDARD so that our k8s node pools live on the standard tier. The google API for k8s has no way to set the network tier for node pools, and setting the default network tier to standard is the only way to do that. |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Community Note
modular-magician
user, it is either in the process of being autogenerated, or is planned to be autogenerated soon. If an issue is assigned to a user, that user is claiming responsibility for the issue. If an issue is assigned tohashibot
, a community member has claimed the issue already.Terraform Version
Terraform v1.5.7
Terraform provider google: v4.83.0
Affected Resource(s)
Terraform Configuration Files
Debug Output
https://gist.github.com/glimberg/d24a3739326e59d73f9de5938f0ea831
Panic Output
None
Expected Behavior
Per Google Endpoint Documentation, Global addresses shoule always be PREMIUM tier.
I would expect that the terraform provider would either default the network tier to PREMIUM, or at least have a
network_tier
argument so that it can be set as PREMIUM manually.Actual Behavior
Google provider has no
network_tier
argument forgoogle_compute_global_address
, even though the API endpoint accepts anetworkTier
parameter. Either the API docs are incorrect and it is not defaulting to PREMIUM for global addresses, or the terraform provider is overriding the argument with STANDARD.Steps to Reproduce
terraform apply
Important Factoids
It is possible to have the default network tier set to STANDARD and create PREMIUM Global addresses from GCP's web UI.
References
The text was updated successfully, but these errors were encountered: