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

Public ip not always deleted when deleting a service of type loadbalancer #1283

Closed
bramvdklinkenberg opened this issue Oct 22, 2019 · 6 comments
Assignees

Comments

@bramvdklinkenberg
Copy link

What happened:
We have an ELB (Kubernetes) in front of our AKS dev cluster. During the day new service can/are deployed to the cluster and are exposed as type Load Balancer which creates a public ip attached to our ELB. This is done automatically when we create a Pull Reauest in Azure DevOps.
Each PR gets deployed in its own namespace.
When a PR is merged to master the PR namespace will be deleted, but we also have a job . running that cleans up the PR namespaces at night.

We have noticed that deleting a namespace, and thus the service resource, on the cluster not always correctly deletes the health probe and lb rules which causes the public IP to not be deleted. The namespace and its service are deleted on AKS, but the pub ip and its rules are not deleted. It sometimes happens when we delete one service at a time and also when deleting multiple services at the same time.
When I look at the activity log I can see some failure but not exactly why some deletions are failing. I think because the ELB can't always process multiple create/update/delete actions at the same time and somehow gets in some sort of frozen status and times out after a while and eventually hasn't deleted the lb rules, health probes and its pub ip.
Anyone else experiencing this issue?

What you expected to happen:
For the public ip to be properly removed when removing a service of type loadbalancer

How to reproduce it (as minimally and precisely as possible):
Create a deployment, expose it as type loadbalancer, delete the service

Environment:

  • Kubernetes version (use kubectl version): 1.14.7
  • Size of cluster (how many worker nodes are in the cluster?): 30 nodes
@gstolz
Copy link

gstolz commented May 7, 2020

yes, we are having the same problem!

@awilhelmer
Copy link

we have got the same problem ...

@github-actions
Copy link

Action required from @Azure/aks-pm

@ghost
Copy link

ghost commented Jul 26, 2020

Action required from @Azure/aks-pm

@ghost ghost added the Needs Attention 👋 Issues needs attention/assignee/owner label Jul 26, 2020
@palma21
Copy link
Member

palma21 commented Aug 4, 2020

@feiskyer would you be able to help?

@palma21 palma21 removed the Needs Attention 👋 Issues needs attention/assignee/owner label Aug 4, 2020
@feiskyer
Copy link
Member

feiskyer commented Aug 4, 2020

it is because old version of Kubernetes doesn't support service finalizer. Service finalizer is GA since v1.17, please upgrade the cluster to v1.17 to have the fixes for the issue.

@feiskyer feiskyer closed this as completed Aug 4, 2020
@ghost ghost locked as resolved and limited conversation to collaborators Sep 3, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants