-
Notifications
You must be signed in to change notification settings - Fork 602
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[*-controller] /metrics endpoint not up2date after multiple updates #4139
Comments
@muryoutaisuu are by any chance the missing Kustomizations on an older API version or are they all in your Git repo on |
@stefanprodan you are correct, in the gitrepo it's still on an older version:
|
I'm surprise that this is the only thing not working, v1beta1 is a 3 years old API, please update all your manifests in Git to the APIs available in GA:
You're also using |
By the way, in the next release we're deprecating the |
Thanks for the advice! updating API versions is on our agenda. I just checked about the sharding of alertmanager HR:
alertmanager is sharded to key after restarting both controllers it's now appearing only on the sharded controller:
For this upgrade cycle we will therefore restart the non-sharded controllers to reset state and patiently await the kube-state-metrics reporting. Thanks for the heads-up! |
Describe the bug
After upgrading multiple Helmcharts and Kustomizations today, the
/metrics
endpoints of multiple controllers are not reporting correct state of items.A restart of the controller pods will reset the state to actual state observed in cluster. Still we'd rather like it to automatically sync to correct state.
Example 1 - helm-controller
/metrics
endpoint showing wrong state (not Ready) foralertmanager
HR:alertmanager HR according to kubectl:
alertmanager HR according to flux:
eventhough alertmanager HR is reporting ready state on both
kubectl
andflux
commands, it is exported as notReady by/metrics
on the helm-controller.In fact, a lot of the HRs are exported as notReady:
actual state for all HRs:
all are in Ready state except for the 3 in
mdo-gitlab-runner
namespace.Example 2 - kustomization-controller
/metrics
endpoint not showing all known Kustomizations:flux showing known Kustomizations:
kubectl kustomizations:
2 Kustomizations are not reporting on the
/metrics
endpoint:components-locations-bn-refsa1-cb-lw-1
andcomponents-onboarding-managed
.It's possible that other controllers are affected as well, I have not checked others besides kustomize and helm.
Steps to reproduce
not yet a way to for sure reproduce the behaviour.
Though upgrading multiple HR (up to 10) at once on multiple clusters showed same behaviours on all clusters.
Expected behavior
output from
flux get helmreleases -A
and/metrics
metricgotk_reconcile_condition
on the helm-controller should show same amount and state of helmreleases on cluster.Same goes for kustomizations with corresponding kustomization-controller.
Possible that other controllers are affected as well.
Screenshots and recordings
OS / Distro
Ubuntu 22.04.2
Flux version
v2.0.1
Flux check
Git provider
No response
Container Registry provider
No response
Additional context
Logs specific to alertmanager HR
Code of Conduct
The text was updated successfully, but these errors were encountered: