[ad_1]
I am new to Flux.
I struggle to understand the interval configuration. I am following the original doc Flux
flux create source git podinfo \
--url=https://github.com/stefanprodan/podinfo \
--branch=master \
--interval=30s \
--export > ./clusters/my-cluster/podinfo-source.yaml
flux create kustomization podinfo \
--target-namespace=default \
--source=podinfo \
--path="./kustomize" \
--prune=true \
--interval=5m \
--export > ./clusters/my-cluster/podinfo-kustomization.yaml
The former interval (30s) should control how often flux looks at Git for new commits, whereas the latter interval (5m) controls how often flux will apply what’s in git to the cluster, regardless of new commits. This is how, for example, a resource deleted using other means will be re-created.
Question: what’s the point to have 2 intervals? My best guess: is it because without the former interval Kustomize would have no way to eventually update the manifests in the path it is observing? Rather it will only be able to reconcile manual changes in the k8s cluster ?!
[ad_2]