observatorium / thanos-receive-controller

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

waited for all pods ready during generated hashring initialization #138

Open christopherzli opened 6 months ago

christopherzli commented 6 months ago

During the initial controller setup, we prefer to wait over all pods ready before generating hashring. controller will wait for all pods ready before generating hashring for first time if using allow only read replicas. if not all pods are ready, it will be no-op if not all pods are ready and replicas do not exist in the local controller. This is to handle no replicas information stored in local controller after controller restarts, we should not do anything until the cluster is healthy.