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.
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.