2024-10-11 18:44:08 -05:00
|
|
|
---
|
2024-10-14 09:26:12 -05:00
|
|
|
# yaml-language-server: $schema=https://raw.githubusercontent.com/bjw-s/helm-charts/main/charts/other/app-template/schemas/helmrelease-helm-v2.schema.json
|
2024-10-12 12:03:18 -05:00
|
|
|
apiVersion: helm.toolkit.fluxcd.io/v2
|
2024-10-11 18:44:08 -05:00
|
|
|
kind: HelmRelease
|
|
|
|
metadata:
|
|
|
|
name: alertmanager-silencer
|
|
|
|
spec:
|
|
|
|
interval: 30m
|
|
|
|
chart:
|
|
|
|
spec:
|
|
|
|
chart: app-template
|
2024-10-14 11:02:26 -05:00
|
|
|
version: 3.5.1
|
2024-10-11 18:44:08 -05:00
|
|
|
sourceRef:
|
|
|
|
kind: HelmRepository
|
|
|
|
name: bjw-s
|
|
|
|
namespace: flux-system
|
|
|
|
install:
|
|
|
|
remediation:
|
|
|
|
retries: 3
|
|
|
|
upgrade:
|
|
|
|
cleanupOnFail: true
|
|
|
|
remediation:
|
|
|
|
retries: 3
|
|
|
|
strategy: rollback
|
|
|
|
dependsOn:
|
2024-10-11 18:47:50 -05:00
|
|
|
- name: alertmanager
|
2024-10-11 18:44:08 -05:00
|
|
|
namespace: observability
|
|
|
|
values:
|
|
|
|
controllers:
|
|
|
|
alertmanager-silencer:
|
|
|
|
type: cronjob
|
|
|
|
cronjob:
|
|
|
|
schedule: "@daily"
|
|
|
|
containers:
|
|
|
|
app:
|
|
|
|
image:
|
|
|
|
repository: ghcr.io/onedr0p/kubanetics
|
2024-11-15 22:03:40 -06:00
|
|
|
tag: 2024.11.0
|
2024-10-11 18:44:08 -05:00
|
|
|
env:
|
|
|
|
SCRIPT_NAME: alertmanager-silencer.sh
|
|
|
|
ALERTMANAGER_URL: http://alertmanager.observability.svc.cluster.local:9093
|
|
|
|
MATCHERS_0: alertname=CephPGImbalance job=rook-ceph-exporter
|
2024-10-17 21:32:33 -05:00
|
|
|
MATCHERS_1: alertname=CephMonClockSkew job=rook-ceph-mgr
|
2024-10-11 18:44:08 -05:00
|
|
|
securityContext:
|
|
|
|
allowPrivilegeEscalation: false
|
|
|
|
readOnlyRootFilesystem: true
|
|
|
|
capabilities: { drop: ["ALL"] }
|
|
|
|
resources:
|
|
|
|
requests:
|
|
|
|
cpu: 25m
|
|
|
|
limits:
|
|
|
|
memory: 128Mi
|
|
|
|
pod:
|
|
|
|
securityContext:
|
|
|
|
runAsUser: 568
|
|
|
|
runAsGroup: 568
|
|
|
|
runAsNonRoot: true
|