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

GCP assignment fails if IP address is of STANDARD tier #155

Open
javibookline opened this issue Oct 15, 2024 · 0 comments
Open

GCP assignment fails if IP address is of STANDARD tier #155

javibookline opened this issue Oct 15, 2024 · 0 comments

Comments

@javibookline
Copy link

When using kubeip to manage a reserved external IP that is of STANDARD tier, the gcloud compute instances call fails with the error

ERROR: (gcloud.compute.instances.add-access-config) Could not fetch resource:
 - External IP address: xxx.xxx.xxx.xxx has a different network tier STANDARD from the network tier in instance access config PREMIUM.

According to the docs, there is a parameter network-tier which is PREMIUM by default, and seeing the source code of kubeip that is the value being used by the command, as no value is specified in the function call.

return m.client.Instances.AddAccessConfig(project, zone, instance, networkInterface, accessconfig).Do() //nolint:wrapcheck

A proposed solution would be to check the NetworkTier attribute of the retrieved GCP Address and if it is of type STANDARD, setting the parameter value to STANDARD for these cases would fix this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant