---
# yaml-language-server: $schema=https://raw.githubusercontent.com/fluxcd-community/flux2-schemas/main/helmrelease-helm-v2beta1.json
apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease
metadata:
name: thanos
namespace: monitoring
spec:
interval: 30m
timeout: 15m
chart:
chart: thanos
version: 12.13.11
sourceRef:
kind: HelmRepository
name: bitnami
namespace: flux-system
maxHistory: 2
install:
createNamespace: true
remediation:
retries: 3
upgrade:
cleanupOnFail: true
uninstall:
keepHistory: false
dependsOn:
- name: rook-ceph-cluster
namespace: rook-ceph
values:
image:
registry: quay.io
repository: thanos/thanos
tag: v0.32.4
existingObjstoreSecret: thanos-s3-secret
queryFrontend:
enabled: true
replicaCount: 3
ingress:
ingressClassName: nginx
hostname: &host thanos-query-frontend.valinor.social
tls: true
extraTls:
- hosts:
- *host
query:
replicaLabel: ["__replica__"]
dnsDiscovery:
sidecarsService: kube-prometheus-stack-thanos-discovery
sidecarsNamespace: monitoring
bucketweb:
compactor:
extraFlags:
- --compact.concurrency=4
- --delete-delay=30m
retentionResolutionRaw: 14d
retentionResolution5m: 14d
retentionResolution1h: 14d
persistence:
storageClass: ceph-block
size: 20Gi
storegateway:
size: 10Gi
ruler:
replicaLabel: __replica__
alertmanagers: ["http://kube-prometheus-stack-alertmanager.monitoring.svc.cluster.local:9093"]
extraFlags: ["--web.prefix-header=X-Forwarded-Prefix"]
config: |-
groups:
- name: PrometheusWatcher
rules:
- alert: PrometheusDown
annotations:
summary: A Prometheus has disappeared from Prometheus target discovery
expr: absent(up{job="kube-prometheus-stack-prometheus"})
for: 5m
labels:
severity: critical
size: 5Gi
metrics:
serviceMonitor: