Skip to content
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

Add kube-prometheus-stack example #109

Open
Pro opened this issue Jun 12, 2023 · 0 comments
Open

Add kube-prometheus-stack example #109

Pro opened this issue Jun 12, 2023 · 0 comments

Comments

@Pro
Copy link
Contributor

Pro commented Jun 12, 2023

I am currently trying to familiarize myself with flux, and face some issues getting the prometheus stack running inside this multi tenancy repo.

I tried to add the Monitoring stack as described in https://fluxcd.io/flux/guides/monitoring/ by creating the corresponding flux files.
And I feel quite stuck, especially with setting correct RBAC and namespaces. I played around with a lot of different settings, but was not able to get the monitoring stack up and running.

Here is the diff of the files:
main...Pro:flux2-multi-tenancy:monitoring

The reconciliation of kube-prometheus-stack fails with:

error Kustomization/kube-prometheus-stack.flux-system - Reconciliation failed after 68.004611ms, next try in 1h0m0s Namespace/monitoring dry-run failed, reason: Forbidden: namespaces "monitoring" is forbidden: User "system:serviceaccount:flux-system:monitoring-sa" cannot patch resource "namespaces" in API group "" in the namespace "monitoring"

Could you please point me to the right direction on how to add the monitoring stack?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant