<p>I install ingress in the standard way. Using the Helm Chart.
<a href="https://kubernetes.github.io/ingress-nginx" rel="nofollow noreferrer">https://kubernetes.github.io/ingress-nginx</a></p>
<p>But I do not want my LoadBalancer to be automatically deleted when the controller is deleted.</p>
<pre><code>   finalizers:
     - service.kubernetes.io/load-balancer-cleanup
</code></pre>
<p>This value is set by default to the service during installation. And I don't see how it can be removed/configured.
I don't understand why it's set like this by default. After all, this is not practical, if LoadBalancer is deleted, then when creating a new one, it will be assigned a different IP, which means that DNS will need to be redirected to another IP.</p>
<p>And a second question if I may. How do I configure Service to automatically update LoadBalancer status? When the service connects to it, everything is fine, but when I remove the LoadBalancer, the service continues to be in an active state.
I use Hetzner. Annotation <code>load-balancer.hetzner.cloud/health-check-interval: 15</code> does not work in the service.
Available annotations can be viewed here: <a href="https://pkg.go.dev/github.com/hetznercloud/hcloud-cloud-controller-manager/internal/annotation" rel="nofollow noreferrer">https://pkg.go.dev/github.com/hetznercloud/hcloud-cloud-controller-manager/internal/annotation</a>)</p>

JDev
<p><strong>You can remove finalizers by two ways:</strong></p>
<ol>
<li>Using <code>kubectl edit svc service_name</code>, remove the part below and save it again.</li>
</ol>
<p><code> finalizers:</code></p>
<pre><code>` - service.kubernetes.io/load-balancer-cleanup`
</code></pre>
<ol start="2">
<li><p>You can use <a href="https://kubernetes.io/docs/tasks/run-application/update-api-object-kubectl-patch/" rel="nofollow noreferrer">kubectl patch</a> to update objects in place.</p>
<p><code>kubectl patch ingress $Ingressname -n $namespace -p '{&quot;metadata&quot;:{&quot;finalizers&quot;:[]}}' --type=merge</code></p>
</li>
</ol>
<p>As per this <a href="https://kubernetes.io/blog/2021/05/14/using-finalizers-to-control-deletion/#owner-references" rel="nofollow noreferrer">Doc</a> you can try to delete the ingress controller without deleting the load balancer using <code>kubectl delete --cascade=orphan</code> , <a href="https://kubernetes.io/docs/tasks/administer-cluster/use-cascading-deletion/#set-orphan-deletion-policy" rel="nofollow noreferrer">cascade</a> option is used when you want to delete the owner object but the orphan will not get deleted . Can you try this and let me know if this works.</p>
