2023-08-13 12:13:53 -05:00
|
|
|
---
|
2023-12-20 13:33:31 -06:00
|
|
|
# yaml-language-server: $schema=https://raw.githubusercontent.com/fluxcd-community/flux2-schemas/main/helmrelease-helm-v2beta2.json
|
|
|
|
apiVersion: helm.toolkit.fluxcd.io/v2beta2
|
2023-08-13 12:13:53 -05:00
|
|
|
kind: HelmRelease
|
|
|
|
metadata:
|
|
|
|
name: thanos
|
|
|
|
namespace: monitoring
|
|
|
|
spec:
|
|
|
|
interval: 30m
|
|
|
|
timeout: 15m
|
|
|
|
chart:
|
|
|
|
spec:
|
|
|
|
chart: thanos
|
2023-12-21 10:00:33 -06:00
|
|
|
version: 12.20.1
|
2023-08-13 12:13:53 -05:00
|
|
|
sourceRef:
|
|
|
|
kind: HelmRepository
|
|
|
|
name: bitnami
|
|
|
|
namespace: flux-system
|
|
|
|
maxHistory: 2
|
|
|
|
install:
|
|
|
|
createNamespace: true
|
|
|
|
remediation:
|
|
|
|
retries: 3
|
|
|
|
upgrade:
|
|
|
|
cleanupOnFail: true
|
|
|
|
remediation:
|
|
|
|
retries: 3
|
|
|
|
uninstall:
|
|
|
|
keepHistory: false
|
|
|
|
values:
|
|
|
|
image:
|
|
|
|
registry: quay.io
|
|
|
|
repository: thanos/thanos
|
2023-12-19 15:01:17 -06:00
|
|
|
tag: v0.33.0
|
2024-01-03 06:29:26 -06:00
|
|
|
objstoreConfig:
|
|
|
|
type: s3
|
|
|
|
config:
|
|
|
|
insecure: true
|
2023-08-13 12:13:53 -05:00
|
|
|
queryFrontend:
|
|
|
|
enabled: true
|
|
|
|
replicaCount: 3
|
|
|
|
ingress:
|
|
|
|
enabled: true
|
|
|
|
query:
|
|
|
|
enabled: true
|
|
|
|
replicaCount: 3
|
|
|
|
replicaLabel: ["__replica__"]
|
|
|
|
dnsDiscovery:
|
|
|
|
sidecarsService: kube-prometheus-stack-thanos-discovery
|
|
|
|
sidecarsNamespace: monitoring
|
|
|
|
bucketweb:
|
|
|
|
enabled: true
|
|
|
|
replicaCount: 3
|
|
|
|
compactor:
|
|
|
|
enabled: true
|
|
|
|
extraFlags:
|
|
|
|
- --compact.concurrency=4
|
|
|
|
- --delete-delay=30m
|
2023-12-01 13:52:41 -06:00
|
|
|
retentionResolutionRaw: 30d
|
|
|
|
retentionResolution5m: 60d
|
|
|
|
retentionResolution1h: 90d
|
2023-08-13 12:13:53 -05:00
|
|
|
persistence:
|
|
|
|
enabled: true
|
2023-12-20 09:56:23 -06:00
|
|
|
storageClass: ceph-block
|
2023-09-29 08:03:48 -05:00
|
|
|
size: 20Gi
|
2023-08-13 12:13:53 -05:00
|
|
|
storegateway:
|
|
|
|
enabled: true
|
|
|
|
replicaCount: 3
|
|
|
|
persistence:
|
|
|
|
enabled: true
|
2023-12-20 09:56:23 -06:00
|
|
|
storageClass: ceph-block
|
2023-09-29 08:03:48 -05:00
|
|
|
size: 10Gi
|
2023-08-13 12:13:53 -05:00
|
|
|
ruler:
|
|
|
|
enabled: true
|
|
|
|
replicaCount: 3
|
|
|
|
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
|
|
|
|
persistence:
|
|
|
|
enabled: true
|
2023-12-20 09:56:23 -06:00
|
|
|
storageClass: ceph-block
|
2023-09-29 08:03:48 -05:00
|
|
|
size: 5Gi
|
2023-08-13 12:13:53 -05:00
|
|
|
metrics:
|
|
|
|
enabled: true
|
|
|
|
serviceMonitor:
|
|
|
|
enabled: true
|
2024-01-03 06:29:26 -06:00
|
|
|
valuesFrom:
|
|
|
|
- targetPath: objstoreConfig.config.bucket
|
|
|
|
kind: ConfigMap
|
|
|
|
name: thanos-bucket-v1
|
|
|
|
valuesKey: BUCKET_NAME
|
|
|
|
- targetPath: objstoreConfig.config.endpoint
|
|
|
|
kind: ConfigMap
|
|
|
|
name: thanos-bucket-v1
|
|
|
|
valuesKey: BUCKET_HOST
|
|
|
|
- targetPath: objstoreConfig.config.region
|
|
|
|
kind: ConfigMap
|
|
|
|
name: thanos-bucket-v1
|
|
|
|
valuesKey: BUCKET_REGION
|
|
|
|
- targetPath: objstoreConfig.config.access_key
|
|
|
|
kind: Secret
|
|
|
|
name: thanos-bucket-v1
|
|
|
|
valuesKey: AWS_ACCESS_KEY_ID
|
|
|
|
- targetPath: objstoreConfig.config.secret_key
|
|
|
|
kind: Secret
|
|
|
|
name: thanos-bucket-v1
|
|
|
|
valuesKey: AWS_SECRET_ACCESS_KEY
|