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

[GLBC] LB garbage collection orphans named ports in instance groups #695

Closed
nicksardo opened this issue May 8, 2017 · 6 comments
Closed

Comments

@nicksardo
Copy link
Contributor

nicksardo commented May 8, 2017

The GLBC does not remove the named port from an instance group when a backend is being deleted.

If users are frequently created/deleting services and ingresses, instance groups will become polluted with old node ports. Eventually, users will hit a max limit.

Exceeded limit 'MAX_DISTINCT_NAMED_PORTS' on resource 'k8s-ig--aaaaaaaaaaaa'

Temporary workaround

region=us-central1
cluster_id=$(kubectl get configmaps ingress-uid -o jsonpath='{.data.uid}' --namespace=kube-system)
ports=$(gcloud compute backend-services list --global --format='value(port,port)' |  xargs printf 'port%s:%s,')
for zone in b c f; do
  gcloud compute instance-groups unmanaged set-named-ports k8s-ig--$cluster_id --zone=$region-$zone --named-ports=$ports
done

Modify the region and list of zone suffix in the script.

@nicksardo nicksardo self-assigned this May 8, 2017
@nicksardo nicksardo removed their assignment May 9, 2017
@nicksardo
Copy link
Contributor Author

Requires kubernetes/kubernetes#46457

@porridge
Copy link
Member

porridge commented Jun 5, 2017

I see that the dependency was merged a week ago. Is there a plan/ETA for this one?

@nicksardo
Copy link
Contributor Author

@porridge I'm waiting on one more PR to merge before we can update this repo's vendored dependencies.

I expect to have a fix in for the next release of GLBC, but there's no ETA for that just yet.

@pawloKoder
Copy link

Any update on this issue?

@G-Harmon
Copy link

Hi, I'm starting to work on this now, as my first Kubernetes fix.

@bowei
Copy link
Member

bowei commented Oct 11, 2017

This issue was moved to kubernetes/ingress-gce#43

@bowei bowei closed this as completed Oct 11, 2017
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

5 participants