-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Helm chart fails to create the sidecar in the ruler pod in microservices (distributed) mode #16529
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
Comments
Hi @mwtzzz, I spoke with the team again on this one. Their advice in microservice mode is to use object storage for rules. They understand your use case but believe rules that need to be uploaded in this way can also be added to object storage through automation. We can leave this ticket open and if more support comes for this issue we can bump the sidecar issue up the list to revisit. If a community member also works on the issue and adds a PR I can look at fast-tracking as well. Apologies it's not the answer you are looking for at this time. :( |
@Jayclifford345 Thanks for the update, no worries I appreciate you looked into it, yes please leave the ticket open, it would be useful, not only to ourselves, but to others too. |
I am also interested in migrating our loki-sc-rules sidecar to microservices mode, as we need to deploy rules from kubernetes automatically, and as far as I can tell there's no automation to deploy them to the object storage. |
No, there isn't. You'd have to create your own custom tooling to POST api requests, which is pretty kludgey. Instead of doing that, I opted to not deploy the ruler from helm, instead I'm using a manifest like this:
|
Uh oh!
There was an error while loading. Please reload this page.
Describe the bug
In SimpleScaleable mode, the helm chart correctly deploys a sidecar inside the
backend
statefulset when the following parameters are set.But in Distributed mode, it fails to create the sidecar, which results in a ruler pod that does not work properly, with the following errors:
I can fix the ruler by inserting a sidecar myself. But it would be nice if this were handled automatically by helm.
To Reproduce
Steps to reproduce the behavior:
cat loki-dev-values-distributed | helm template loki grafana/loki --values=- --namespace ops > loki-01-distributed.yaml
loki-01-distributed.yaml
and you will see there is no sidecar container in theloki-ruler
statefulsetExpected behavior
I expect a sidecar container inside the
loki-ruler
StatefulSet, in the same way as taken care of automatically by helm indeploymentMode: SimpleScaleable
Environment:
Screenshots, Promtail config, or terminal output
N/A above description gives reproducible steps
The text was updated successfully, but these errors were encountered: