Hi Dale, Thanks for the feedback. The worry is fair: a restart is hard to miss, but a log line is much easier to.
I'm taking your points one by one. Kubernetes Events: Yes, let's add one. Emitting the Event on the operator's own Deployment means it works even when the broken namespace can't be written to. Together with the log line and the gauge, it completes the picture: what happened, in which namespace, and since when. Status conditions on the affected resources: I would leave this out. A broken secondary informer means the operator's handling of that namespace is broken, not the primary resource it would write the condition to, and a resource should report its own problems. We would also have to categorize every failure we can run into to write it into a condition, and that list is open-ended. I don't think it earns its place. More detail in the health response: I agree with you here. Any extra detail there depends on someone looking at the right moment, and whatever we add is a guess about what they'll need. I'd keep the response as it is, healthy or not, and leave the details to the log, which has the exact exception, and to the metric. Adding special keywords or parameters to the response would complicate the logic without answering every question an admin might have. PrometheusRule: That's a good one and worth adding. Thanks for the suggestion. Best, Dennis On Mon, Nov 30, 2026 at 6:05 PM Dale Lane via dev <[email protected]> wrote: > I like the idea and the approach. > > I do wonder about what additional things could be done to improve the > visibility of any problems spotted. A missing role/rolebinding can be nice > and visible today by either failing the rollout or restarting the existing > Operator pod. > > In an ideal world, all admins would be closely monitoring log lines for > errors and watching metrics, but I'm not sure everyone does. So is there > anything else we could do to make it easier to spot? > > e.g. Kubernetes Events? > We could also create a Kubernetes Event to flag the problem. Ideally that > would be in the problem namespace, but if we're so broken we can't fully > watch the namespace, we likely can't write events. But we could at least > create an event on the operator's own Deployment? > > e.g. status conditions? > If we can still write to the affected resources (assuming something like > an incomplete Role rather than completely broken) and the primary informer > still works, could we add a status condition or phase flagging the problem? > > There might be other approaches I'm not thinking of. Annoyingly, every > other idea I can think of (e.g. put more detail in the health endpoint > response) is still dependent on the admin actually looking, which is the > thing I worry they might not do in the first place. > > For the more diligent admins, I think it could help to document a sample > PrometheusRule that would alert on the new gauge, turning it into a > notification. There's already a PodMonitor sample in > https://nightlies.apache.org/flink/flink-kubernetes-operator-docs-main/docs/operations/health/ > so we could put it next to that. Most of my FKO experience is in OpenShift > Container Platform, and the ideal native OCP experience would be to have it > show up in the Alerting Observe tab. A PrometheusRule could do that too. > > Kind regards > > D > -- > dalelane.co.uk > > On Monday, 30 November 2026 at 10:25, Dennis-Mircea Ciupitu < > [email protected]> wrote: > > > Hi all, > > > > I'd like to discuss what the operator health probe should do when one of > > its informers is broken. Design doc with the scenarios and pictures can > be > > found here [1]. > > > > Quick context - The incident behind FLINK-41441 [2] and FLINK-41465 [3] > > made us look at the probe's informer rules as a whole, and FLINK-41035 > [4] > > showed how easily a fix in one spot breaks a verdict in another. So we > > walked through every situation, one and two watched namespaces, startup > > failures, namespaces added or removed at runtime, and the staleness > check. > > > > The essence of the proposal is one idea: judge health per watched > > namespace. The probe should ask which namespaces the operator can still > > serve correctly, fail only when the answer is none, and say which ones it > > cannot serve otherwise. Everything below is that idea applied to the > cases > > we found. > > > > The verdicts the operator health probe gives today are right, with one > > exception. What we propose to change sits around them: > > - A broken namespace is invisible beyond one log line. We report every > > namespace the operator cannot serve, one ERROR per transition and a gauge > > per namespace. > > kubernetes.operator.startup.stop-on-informer-error has no job left once > the > > probe fails exactly when no namespace can be served, and it is what > causes > > a crash loop. We deprecate it: default false in 1.17, gone in 1.18. > > - The one verdict change: two namespaces broken in different ways pass > > today because each resource type still works somewhere. They should fail > > because the operator can serve neither. > > - A namespace added at runtime whose informers fail to start restarts the > > operator. The restart cannot help, the informer retries on its own, and > > with the default startup flag it becomes a crash loop that takes the > > healthy namespaces down too. We drop that restart. > > - The staleness check follows the same rule: a stale namespace among > > healthy ones is reported, the probe fails once a type is stale > everywhere. > > > > I'd like to hear in particular whether anyone relies on that restart or > on > > the strict startup flag, whether the 1.17/1.18 timeline works, and any > > preference on the metric's shape. If nobody objects, I'll proceed with > the > > current proposal & design. > > > > Best, > > Dennis > > > > [1] > > > https://docs.google.com/document/d/156ZYhturGdGx_VN7N8g_nrowUZkbNE2rG_MAD6FamZg/edit?usp=sharing > > [2] https://issues.apache.org/jira/browse/FLINK-41441 > > [3] https://issues.apache.org/jira/browse/FLINK-41465 > > [4] https://issues.apache.org/jira/browse/FLINK-41035 > > >
