mirror of
https://github.com/auricom/home-cluster.git
synced 2025-09-17 18:24:14 +02:00
74 lines
1.8 KiB
YAML
74 lines
1.8 KiB
YAML
---
|
|
# yaml-language-server: $schema=https://kubernetes-schemas.pages.dev/helm.toolkit.fluxcd.io/helmrelease_v2.json
|
|
apiVersion: helm.toolkit.fluxcd.io/v2
|
|
kind: HelmRelease
|
|
metadata:
|
|
name: &app blackbox-exporter
|
|
spec:
|
|
interval: 30m
|
|
chart:
|
|
spec:
|
|
chart: prometheus-blackbox-exporter
|
|
version: 11.0.0
|
|
sourceRef:
|
|
kind: HelmRepository
|
|
name: prometheus-community
|
|
install:
|
|
remediation:
|
|
retries: 3
|
|
upgrade:
|
|
cleanupOnFail: true
|
|
remediation:
|
|
strategy: rollback
|
|
retries: 3
|
|
values:
|
|
fullnameOverride: *app
|
|
ingress:
|
|
enabled: true
|
|
className: internal
|
|
hosts:
|
|
- host: blackbox-exporter.${SECRET_EXTERNAL_DOMAIN}
|
|
paths:
|
|
- path: /
|
|
pathType: Prefix
|
|
securityContext:
|
|
readOnlyRootFilesystem: true
|
|
allowPrivilegeEscalation: false
|
|
capabilities:
|
|
add: [NET_RAW]
|
|
config:
|
|
modules:
|
|
http_2xx:
|
|
prober: http
|
|
timeout: 5s
|
|
http:
|
|
valid_http_versions: [HTTP/1.1, HTTP/2.0]
|
|
follow_redirects: true
|
|
preferred_ip_protocol: ipv4
|
|
icmp:
|
|
prober: icmp
|
|
timeout: 5s
|
|
icmp:
|
|
preferred_ip_protocol: ipv4
|
|
tcp_connect:
|
|
prober: tcp
|
|
timeout: 5s
|
|
tcp:
|
|
preferred_ip_protocol: ipv4
|
|
serviceMonitor:
|
|
enabled: true
|
|
defaults:
|
|
interval: 1m
|
|
scrapeTimeout: 10s
|
|
prometheusRule:
|
|
enabled: true
|
|
rules:
|
|
- alert: BlackboxProbeFailed
|
|
expr: probe_success == 0
|
|
for: 15m
|
|
labels:
|
|
severity: critical
|
|
annotations:
|
|
summary: |-
|
|
The host {{ $labels.target }} is currently unreachable
|