DataDog / extendeddaemonset

Kubernetes Extended Daemonset controller
Apache License 2.0
98 stars 13 forks source link

Make the forwarder controller reply to /live and /ready #7

Closed L3n41c closed 4 years ago

L3n41c commented 4 years ago

The way operators are working is that they elect a leader very early in their startup sequence and their startup is suspended until a they effectively become leader.

This also applies to the /metrics openmetrics endpoint. This makes this endpoint unsuitable for liveness probe checks since it will make all the non-leader operators being uselessly restarted.

This change introduces dedicated endpoints aiming at being used as liveness and readiness probes.

This change is the same as the one proposed in DataDog/datadog-operator#49.