apiVersion: apps/v1 kind: StatefulSet metadata: name: thanos-compactor namespace: prometheus-ha labels: app: thanos-compactor spec: replicas: 1 selector: matchLabels: app: thanos-compactor serviceName: thanos-compactor template: metadata: labels: app: thanos-compactor spec: containers: - name: thanos image: quay.io/thanos/thanos:v0.8.0 args: - "compact" - "--log.level=debug" - "--data-dir=/data" - "--objstore.config-file=/config/thanos.yaml" - "--wait" env: - name : AZURE_APPLICATION_CREDENTIALS value: /etc/secret/thanos-azure-credentials.yaml ports: - name: http containerPort: 10902 livenessProbe: httpGet: port: 10902 path: /-/healthy readinessProbe: httpGet: port: 10902 path: /-/ready volumeMounts: - name: config mountPath: /config/ readOnly: true - name: data mountPath: /var/thanos/store volumes: - name: data emptyDir: {} - name: config secret: secretName: thanos-objstore-config