observatorium / thanos-receive-controller

Kubernetes controller to automatically configure Thanos receive hashrings
Apache License 2.0
96 stars 46 forks source link

change the namespace listening to #124

Open Hackmeat opened 1 year ago

Hackmeat commented 1 year ago

Hi, i have the issue that my Thanos is running on a different namespace, not on the default one which is configured in the main.go.. Is there flag with which i can change it from "default" to "whatever"

mikeacameron commented 9 months ago

The namespace configuration is what you're looking for. You can see an example here: https://github.com/observatorium/thanos-receive-controller/blob/c57219e684d688af580e7cb8d7d8e96a8f939c6b/examples/manifests/deployment.yaml#L31

This will configure the controller to listen in the name namespace it's deployed to.