apiVersion: apps/v1
kind: StatefulSet
metadata:
  labels:
    app: thanos-receive
  name: thanos-receive
spec:
  replicas: 3
  selector:
    matchLabels:
      app: thanos-receive
  serviceName: thanos-receive
  template:
    metadata:
      labels:
        app: thanos-receive
    spec:
      containers:
      - args:
        - receive
        - --remote-write.address=0.0.0.0:19291
        - --grpc-address=0.0.0.0:10901
        - --objstore.config=$(OBJSTORE_CONFIG)
        env:
        - name: OBJSTORE_CONFIG
          valueFrom:
            secretKeyRef:
              key: thanos.yaml
              name: thanos-objectstorage
        image: improbable/thanos:v0.5.0
        name: thanos-store
        ports:
        - containerPort: 10901
          name: grpc
        - containerPort: 19291
          name: remote-write
  volumeClaimTemplates: []
