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

Orphaned load balancer after deleting application with an Ingress #495

Open
pgoldtho opened this issue May 7, 2020 · 1 comment
Open

Comments

@pgoldtho
Copy link

pgoldtho commented May 7, 2020

Marketplace apps that include an Ingress may leave orphaned network components after deletion. The issue occurs in instances with long names.

The GKE Ingress Controller creates a load balancer to support the Ingress. A name is generated for the load balancer using the namespace, instance name and app name concatenated with a prefix and suffix. The maximum length for this name appears to be 64 characters. The issue occurs if the name gets truncated.

To reproduce, select the Wordpress application from Marketplace and create an instance passing test-nat-ns as the namespace and wordpress-1-superlongname-999999 as the instance name. Check the Enable public IP address checkbox and press Deploy.

Wait for the application to deploy, test it (it appears to work fine) then delete. Navigate to Network services -> Load balancing. You should see an orphaned resource called
k8s-um-test-nat-ns-wordpress-1-superlongname-999999-wordpress-0. It needs to be deleted manually. Now go to VPC network -> External IP addresses. It has a static IP address called k8s-fw-test-nat-ns-wordpress-1-superlongname-999999-wordpress-0. It also needs to be deleted manually.

@pgoldtho
Copy link
Author

The issue occurs when the combined length of the x-google-marketplace: NAME and NAMESPACE properties exceeds 37 characters.

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