thanos-io / kube-thanos

Kubernetes specific configuration for deploying Thanos.
Apache License 2.0
520 stars 177 forks source link

Why query has duplicated thanos-store config #236

Closed zhaojinxin409 closed 2 years ago

zhaojinxin409 commented 3 years ago

yml file: https://github.com/thanos-io/kube-thanos/blob/e1a68590f56034ca1a43d59401f03e72fd01ac5f/examples/all/manifests/thanos-query-deployment.yaml config:

- args:
        - query
        - --store=dnssrv+_grpc._tcp.thanos-store.thanos.svc.cluster.local
        - --store=dnssrv+_grpc._tcp.thanos-store-0.thanos.svc.cluster.local
        - --store=dnssrv+_grpc._tcp.thanos-store-1.thanos.svc.cluster.local
        - --store=dnssrv+_grpc._tcp.thanos-store-2.thanos.svc.cluster.local
yeya24 commented 3 years ago

@zhaojinxin409 Because in the all.jsonnet example, we create both a single store statefulset and a sharded store statefulset with 3 replicas. Please check https://github.com/thanos-io/kube-thanos/blob/e1a68590f5/all.jsonnet#L203-L205.

This is just an example and please modify it based on your own requirement.