Replies: 1 comment 6 replies
-
|
You can speed this up by setting the See the docs here on how to fine tune Flux: https://fluxcd.io/flux/installation/configuration/vertical-scaling/#increase-the-number-of-workers-and-limits |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
-
Hi Community :)
Topic:
I would like to understand better how Flux sees dependencies in order to make our pipeline faster.
Background:
I am working on a project where we are building and maintaining two Kubernetes clusters, and we are using Flux for our gitops. As part of our CI/CD pipeline, we use Kind to spin up the two clusters, run some tests, and then spin them down again. Currently this process takes nearly 30 minutes to complete, and is kind of blocking our pipeline. Hence I am investigating how to make this process faster.
The main thing that takes time is reconciliation of our two clusters. To speed that up, we have (some time ago) implemented a small program that help speed up the reconciliation process. It functions basically like this:
flux reconcile kustomization <kustomization name>The observation was this: If we run a
flux reconcile ...on a Kustomization, it would trigger a reconciliation faster than just waiting for the trigger timeout to happen.Our observed issue:
Our system also prints out status changes from the Kustomizations, so we can track a bit what is going on. This revealed that while a given Kustomization could be marked Done, the dependent Kustomization(s) would still see it as Pending.
This is what the log file shows:
kyverno-system-controllers.kyverno-system.kyverno-system: Dependencykyverno-system-controllersis not ready.kyverno-systemstarts fetching its manifest, indicating that it discovered thatkyverno-system-controllerswas ready.Log file snippet:
Notes on polling Kustomization messages:
kubectl get kustomizations.kustomize.toolkit.fluxcd.io <name> --output jsonpath={.status.conditions[0].message}to retrieve the latest message.Questions / help needed:
kyverno-system-controllersbeing ready, andkyverno-systemfiguring that out?Thank you in advance 🙂
Ps:
I know that my thread here is very similar to Faster reconciliation of dependency chains, but seeing it did not get a lot of attention, I thought I might bring some attention on the issue again.
Also... I would like to know that is going on behind the scenes... that may help me either fix things, or have patience with it 🙂
Beta Was this translation helpful? Give feedback.
All reactions