Monitoring and Troubleshooting
The Flux observability stack — Prometheus metrics, Kubernetes events, and controller logs — plus a systematic playbook for diagnosing a Kustomization or HelmRelease that will not go Ready.
Overview
Failures that keep running
Flux is a set of controllers running a continuous loop, so the interesting failures are not crashes. They are loops that keep running and keep failing. A Kustomization Ready=False for six hours is still reconciling every interval, still emitting events, still burning API calls; nothing is down, the deployment simply is not happening.
Finding out why means reading three layers of signal, and the order matters. Prometheus metrics come first, for aggregate health and the trend. Kubernetes events come next, for the Reason, the Message and the revision. Controller logs come last, for the raw error string.
> [!TIP] Interviewers probe whether you reach for these layers in the right order. Reaching for logs first is the tell of someone who has not done this at scale.
Key concepts
- gotk_reconcile_duration_seconds
- gotk_resource_info
- controller_runtime_reconcile_total
- flux events --for
- flux trace
- flux diff kustomization
- Suspend as break-glass
- Field manager conflict
Interview questions
- Walk me through diagnosing a Kustomization that has been Ready=False for an hour.
- A GitRepository source will not become Ready. What are the failure modes and how do you tell them apart?
- Explain the difference between a dry-run validation failure, a health check timeout, and a dependsOn deadlock.
- Flux applied a change and deleted a resource nobody expected to lose. How does prune work and how do you prevent that?
- A HelmRelease reports "upgrade retries exhausted". What happened and what do you do?
- You get "field is immutable" and separately a field manager conflict under server-side apply. Explain both and fix them.
Sign up free to read the full topic
More DevOps topics
- Linking Deep Dive
- Linux Cron & Task Scheduling
- Local Kubernetes Cluster Setup (minikube / kind / k3d)
- Log Aggregation
- Microservices Design
- Migration and Production Patterns
- Monorepo Build Systems
- MSVC Toolchain and Windows Native Build
- Multi-Cluster GitOps
- Native Artifact Signing and Release
- Native Debugging — gdb, Core Dumps and Symbols
- Node and Scaling Errors — NotReady, Scale-Up, Drain, Terminating and HPA
Start free on Cariara · Coding problems · System design studio