Chapter 96: Flux GitOps — Sources, Reconciliation and Safe Local Practice
96.7 Intervals, event triggers and suspend
Fictional teaching story. At a fictional Solapur school, Neha and Finn learn the difference between a regular timetable and a temporary pause.
Why
Two reconciliation stages can have different schedules, and a pause can stop drift correction.
What
Read time values and pause scope explicitly.
How
An interval is not a guaranteed deployment delay
An interval describes periodic reconciliation timing. Go duration syntax uses units such as m for minutes and s for seconds. Source changes and specification changes can trigger consumer work outside a regular interval.
Immediate practice example
- Read the example from top to bottom. Do not send it to a real cluster.
spec:
interval: 2m
retryInterval: 30s
- Read the expected result.
Illustrative output: not executed by Flux, kubectl, Helm or Kubernetes.
A Kustomization checks periodically around two minutes; failed work may retry at the configured retry interval.
- Understand each line in plain English.
This is a partial Flux Kustomization spec, not a complete object. interval describes normal periodic reconciliation. retryInterval controls retry timing for failed reconciliation when set. Scheduling, event triggers and processing time mean “exactly two minutes until healthy” is not a valid promise. The fetched docs recommend at least sixty seconds for a Kustomization interval.
Suspend is scoped to one reconciliation object
Suspend pauses the chosen controller object. Suspending a source stops new fetch/reconciliation work for that source; suspending a Flux Kustomization pauses its apply work and drift correction.
Immediate practice example
- Read the example from top to bottom. Do not send it to a real cluster.
spec:
suspend: true
- Read the expected result.
Illustrative output: not executed by Flux, kubectl, Helm or Kubernetes.
The selected object is paused; other objects and existing workloads do not automatically stop.
- Understand each line in plain English.
spec is the configuration section. suspend: true is a partial manifest field, shown for reading only. It is not a command to delete a workload. A source and its consumer are separate objects; one being paused does not mean both share the same status. Resume only through a reviewed operational decision in a real system.
Ravindra Bagale's Tip
A paused reconciler is not continuously correcting drift.
Reconciler pause असेल तर drift सतत correct होत नाही.
Reconciler pause हो तो drift लगातार correct नहीं होता.
Did you understand? Let us try it once more.