kubernikus icon indicating copy to clipboard operation
kubernikus copied to clipboard

Waits for Load Balancer Deletions via Finalizers

Open BugRoger opened this issue 4 years ago • 6 comments

This commit changes the wait behaviour when deleteing load balancers. Previously service deleteion didn't use finalizers and no feedback was given. The service disapeared immediately. The deorbiter used a fixed timeout of 2min to wait for load balancer cleanup.

Since the loadbalancer driver in CCEE was changed to Octavia, that grace period is not enough anymore. Deleteion takes longer and in case of 1.16 never completes if the LoadBalancer is not completely provisioned, e.g. due to quota limitations. Especially a FIP is expected to be attached and causes the deletion to never complete.

This fix depends on Kubernetes 1.17 to be fully functional. For Kubernetes < 1.17 the Deorbiter will wait 24h for the service to be deleted. For 1.16 it is possible to set the use-octavia flag as a workaround.

BugRoger avatar Sep 23 '20 10:09 BugRoger

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Dec 25 '20 13:12 stale[bot]

@BugRoger Whats this this little nugget I found in the PR list? Is it ready to be merged?

databus23 avatar Aug 06 '21 09:08 databus23

Can go in, I guess.

BugRoger avatar Aug 06 '21 10:08 BugRoger

Should we maybe keep the current behaviour for <1.16 clusters (we do set use-octavia) for a while now. I just would like to avoid customer inquiries about the old cluster stuck in terminating.

databus23 avatar Aug 13 '21 08:08 databus23

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jan 09 '22 00:01 stale[bot]

rebased on master

databus23 avatar Sep 30 '22 15:09 databus23