question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Allow adding finalizers to services type LoadBalancers

See original GitHub issue

Is your feature request related to a problem? Please describe. Related to: https://github.com/strimzi/strimzi-kafka-operator/issues/3974 For some reason, Strimzi’s services type LoadBalancer does not receive the finalized responsible for guarantee the deletion of the Load Balancer on GCP. That means that even after deleting every Kubernetes object, Load Balancers are being kept on GCP. Google’s supported answer me the following:

After checking other active services with similar naming convention I found that they are managed by Strimzi operators. The reason why this is important is because Strimzi operator managed clusters do not utilize or permit the use of Kubernetes finalizers. In particular, the finalizer responsible for removing associated load balancers, “service.kubernetes.io/load-balancer-cleanup”. This is a known issue with Strimzi managed clusters 1. For more details on the various resources that Strimzi permits, please review the following documentation 2. You’ll notice that finalizers are not within this list of Kubernetes resources permitted within Strimzi operators.

Unfortunately there is no work-around for this other than to either manually delete those Load Balancers, or to not use Strimzi as a means of managing your teams clusters so that the configuration yaml files can utilize finalizers as expected. As this is a 3rd party cluster management system, we cannot assist with ensuring Strimzi permits the use of finalizers as your team is expecting.

I hope this addresses your teams concern with why these load balancers are not being deleted as expected when the services are deleted. Please let me know if you have any further questions about this.

Regards,

Spencer

Describe the solution you’d like Either fixing the finalizer addition or adding finalizer to the MetadataTemplate schema. With the second option, I can do it safely than patching the service after Strimzi deployed it.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
scholzjcommented, Mar 19, 2021

FYI: I opened a PR for this.

1reaction
scholzjcommented, Mar 3, 2021

Well, PRs are welcomed, but don’t worry abotu it if you don’t know Java - I can get to it. However, we are just finalizing 0.22 release and I do not think it will get into it. So it will probably be only in 0.23.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Create an External Load Balancer - Kubernetes
To create an external load balancer, add the following line to your Service manifest: type: LoadBalancer. Your manifest might then look like ...
Read more >
User Changes - Red Hat Bugzilla
Bug 1965394 - service.kubernetes.io/load-balancer-cleanup finalizer is keeping service of type loadbalancer from being removed if loadbalancer creation ...
Read more >
Stop Messing with Kubernetes Finalizers | Martin Heinz
Finalizers are values in resource metadata that signal required pre-delete ... Strimzi (Kafka) - service.kubernetes.io/load-balancer-cleanup ...
Read more >
Using a TCP/UDP load balancer | Google Kubernetes Engine ...
The cluster must have the HttpLoadBalancing add-on enabled. ... kind: Service ... The internal TCP/UDP load balancer allows the sharing of a Virtual...
Read more >
Container Service for Kubernetes:Cloud Controller Manager
If you set Type=LoadBalancer for a Service, the CCM automatically creates a CLB ... The CCM allows you to add annotations in Service...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found