2024-02-27 12:05:24 -06:00
|
|
|
---
|
|
|
|
# yaml-language-server: $schema=https://ks.hsn.dev/helm.toolkit.fluxcd.io/helmrelease_v2beta2.json
|
|
|
|
apiVersion: helm.toolkit.fluxcd.io/v2beta2
|
|
|
|
kind: HelmRelease
|
|
|
|
metadata:
|
|
|
|
name: thanos
|
|
|
|
spec:
|
|
|
|
interval: 30m
|
|
|
|
timeout: 15m
|
|
|
|
chart:
|
|
|
|
spec:
|
|
|
|
chart: thanos
|
2024-04-03 07:02:14 -05:00
|
|
|
version: 15.0.2
|
2024-02-27 12:05:24 -06:00
|
|
|
sourceRef:
|
|
|
|
kind: HelmRepository
|
|
|
|
name: bitnami
|
|
|
|
namespace: flux-system
|
|
|
|
install:
|
|
|
|
remediation:
|
|
|
|
retries: 3
|
|
|
|
upgrade:
|
|
|
|
cleanupOnFail: true
|
|
|
|
remediation:
|
|
|
|
retries: 3
|
|
|
|
uninstall:
|
|
|
|
keepHistory: false
|
|
|
|
dependsOn:
|
|
|
|
- name: openebs
|
|
|
|
namespace: openebs-system
|
2024-04-01 10:27:11 -05:00
|
|
|
- name: dragonfly-operator
|
|
|
|
namespace: dragonfly-operator-system
|
2024-02-27 12:05:24 -06:00
|
|
|
- name: rook-ceph-cluster
|
|
|
|
namespace: rook-ceph
|
|
|
|
values:
|
|
|
|
existingObjstoreSecret: thanos-s3-secret
|
|
|
|
image:
|
|
|
|
registry: quay.io
|
|
|
|
repository: thanos/thanos
|
|
|
|
tag: v0.34.1
|
|
|
|
objstoreConfig:
|
|
|
|
type: s3
|
|
|
|
config:
|
|
|
|
insecure: true
|
|
|
|
receive:
|
|
|
|
enabled: false
|
|
|
|
networkPolicy:
|
|
|
|
enabled: false
|
|
|
|
queryFrontend:
|
|
|
|
enabled: true
|
|
|
|
replicaCount: 2
|
|
|
|
config: &config |-
|
|
|
|
type: REDIS
|
|
|
|
config:
|
2024-03-19 19:52:39 -05:00
|
|
|
addr: dragonfly.database.svc.cluster.local:6379
|
|
|
|
db: 2
|
2024-02-27 12:05:24 -06:00
|
|
|
ingress:
|
|
|
|
enabled: true
|
|
|
|
ingressClassName: internal-nginx
|
|
|
|
hostname: &host thanos-query-frontend.jahanson.tech
|
|
|
|
tls: true
|
|
|
|
extraTls:
|
|
|
|
- hosts:
|
|
|
|
- *host
|
|
|
|
networkPolicy:
|
|
|
|
enabled: false
|
|
|
|
query:
|
|
|
|
enabled: true
|
|
|
|
replicaCount: 2
|
|
|
|
replicaLabel: ["__replica__"]
|
|
|
|
dnsDiscovery:
|
|
|
|
sidecarsService: kube-prometheus-stack-thanos-discovery
|
|
|
|
sidecarsNamespace: observability
|
|
|
|
stores: ["thanos.jahanson.tech:10901"]
|
|
|
|
networkPolicy:
|
|
|
|
enabled: false
|
|
|
|
bucketweb:
|
|
|
|
enabled: true
|
|
|
|
replicaCount: 2
|
|
|
|
networkPolicy:
|
|
|
|
enabled: false
|
|
|
|
compactor:
|
|
|
|
enabled: true
|
|
|
|
extraFlags:
|
|
|
|
- --compact.concurrency=4
|
|
|
|
- --delete-delay=30m
|
|
|
|
retentionResolutionRaw: 14d
|
|
|
|
retentionResolution5m: 30d
|
|
|
|
retentionResolution1h: 60d
|
|
|
|
persistence:
|
|
|
|
enabled: true
|
|
|
|
storageClass: openebs-hostpath
|
|
|
|
size: 10Gi
|
|
|
|
networkPolicy:
|
|
|
|
enabled: false
|
|
|
|
storegateway:
|
|
|
|
enabled: true
|
|
|
|
replicaCount: 2
|
|
|
|
config: *config
|
|
|
|
persistence:
|
|
|
|
enabled: true
|
|
|
|
storageClass: openebs-hostpath
|
|
|
|
size: 10Gi
|
|
|
|
networkPolicy:
|
|
|
|
enabled: false
|
|
|
|
ruler:
|
|
|
|
enabled: true
|
|
|
|
replicaCount: 2
|
|
|
|
replicaLabel: __replica__
|
|
|
|
alertmanagers: ["http://alertmanager-operated.observability.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
|
|
|
|
storageClass: openebs-hostpath
|
|
|
|
size: 10Gi
|
|
|
|
networkPolicy:
|
|
|
|
enabled: false
|
|
|
|
metrics:
|
|
|
|
enabled: true
|
|
|
|
serviceMonitor:
|
|
|
|
enabled: true
|