stackitcloud / yawol

yawol is a Load Balancer solution for OpenStack, based on the Kubernetes controller pattern.
Apache License 2.0
40 stars 5 forks source link

Ignore terminating nodes #341

Open MichaelEischer opened 2 months ago

MichaelEischer commented 2 months ago

The generic Kubernetes cloud-controller-manager implementation ignores nodes that are marked with the ToBeDeletedByClusterAutoscaler taint (see https://github.com/kubernetes/cloud-provider/blob/81e4f58b4d1badd71d633d356faaaf69d971d874/controllers/service/controller.go#L64). This PR let's yawol also ignore those nodes.

In addition, the Terminating condition set by the Gardener machine-controller-manager is also considered. This should allow yawol to avoid sending new traffic to nodes that are about to be shut down.