{"repo":"observatorium/thanos-receive-controller","free":true,"listed":false,"github":"https://github.com/observatorium/thanos-receive-controller","clone":"git clone https://github.com/observatorium/thanos-receive-controller.git","description":"Kubernetes controller to automatically configure Thanos receive hashrings","language":"Go","stars":114,"topics":["thanos","kubernetes","controller","remote-write","prometheus"],"license":"Apache-2.0","category":"deployment-docker-iac","readme_excerpt":"Thanos Receive Controller The Thanos Receive Controller configures multiple hashrings of Thanos receivers running as StatefulSets on Kubernetes. Based on an initial mapping of tenants to hashrings, the controller identifies the Pods in each hashring and generates a complete configuration file as a ConfigMap. Getting Started First, provide an initial mapping of tenants to hashrings in a ConfigMap, e.g.: Next, deploy the controller, pointing it at the configuration file in the ConfigMap: Finally, deploy StatefulSets of Thanos receivers labeled with controller.receive.thanos.io=thanos-receive-controller . The controller lists all of the StatefulSets with that label and matches the value of their controller.receive.thanos.io/hashring labels to the hashring names in the configuration file. The endpoints for each hashring will be populated automatically by the controller and the complete configuration file will be placed in a ConfigMap named thanos-receive-generated . This configuration should be consumed as a ConfigMap volume by the Thanos receivers. About the --allow-only-ready-replicas flag By default, upon a scale up, the controller adds all new receiver replicas into the hashring as soon as they are in a running state. However, this means the new replicas will be receiving requests from other replicas in the hashring before they are ready to accept them. Due to the nature of how receiver works, it can take some time until receiver's storage is ready. Depending on your roll out","default_branch":null,"files":null,"tree":[],"storefront":"/r/observatorium","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/observatorium/thanos-receive-controller/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}