2024-02-29 11:53:55 -06:00
|
|
|
---
|
2024-03-19 17:38:08 -05:00
|
|
|
# yaml-language-server: $schema=https://raw.githubusercontent.com/bjw-s/helm-charts/main/charts/other/app-template/schemas/helmrelease-helm-v2beta2.schema.json
|
2024-05-20 08:01:57 -05:00
|
|
|
apiVersion: helm.toolkit.fluxcd.io/v2
|
2024-02-29 11:53:55 -06:00
|
|
|
kind: HelmRelease
|
|
|
|
metadata:
|
|
|
|
name: alertmanager-silencer
|
|
|
|
spec:
|
|
|
|
interval: 30m
|
|
|
|
chart:
|
|
|
|
spec:
|
|
|
|
chart: app-template
|
2024-04-04 02:04:28 -05:00
|
|
|
version: 3.1.0
|
2024-02-29 11:53:55 -06:00
|
|
|
sourceRef:
|
|
|
|
kind: HelmRepository
|
|
|
|
name: bjw-s
|
|
|
|
namespace: flux-system
|
|
|
|
install:
|
|
|
|
remediation:
|
|
|
|
retries: 3
|
|
|
|
upgrade:
|
|
|
|
cleanupOnFail: true
|
|
|
|
remediation:
|
|
|
|
retries: 3
|
2024-03-19 18:43:34 -05:00
|
|
|
strategy: rollback
|
2024-02-29 11:53:55 -06:00
|
|
|
dependsOn:
|
|
|
|
- name: kube-prometheus-stack
|
|
|
|
namespace: observability
|
|
|
|
values:
|
|
|
|
controllers:
|
2024-03-19 17:38:08 -05:00
|
|
|
alertmanager-silencer:
|
2024-02-29 11:53:55 -06:00
|
|
|
type: cronjob
|
|
|
|
cronjob:
|
|
|
|
schedule: "@daily"
|
|
|
|
containers:
|
2024-03-19 17:38:08 -05:00
|
|
|
app:
|
2024-02-29 11:53:55 -06:00
|
|
|
image:
|
|
|
|
repository: ghcr.io/onedr0p/kubanetics
|
2024-05-17 11:31:57 -05:00
|
|
|
tag: 2024.5.3@sha256:502b08ec384c255b4e7a4650397ee2565aedd93eac8095b8e751451b23b099d0
|
2024-02-29 11:53:55 -06:00
|
|
|
env:
|
|
|
|
SCRIPT_NAME: alertmanager-silencer.sh
|
|
|
|
ALERTMANAGER_URL: http://alertmanager-operated.observability.svc.cluster.local:9093
|
|
|
|
MATCHERS_0: alertname=NodeCPUHighUsage job=node-exporter
|
2024-03-15 12:46:57 -05:00
|
|
|
MATCHERS_1: alertname=CephNodeDiskspaceWarning device=/dev/xvda6
|
2024-03-19 17:38:08 -05:00
|
|
|
MATCHERS_2: alertname=CephNodeDiskspaceWarning device=/dev/nvme0n1p6
|
|
|
|
MATCHERS_3: alertname=CephNodeDiskspaceWarning device=/dev/sda6
|
2024-04-01 11:08:16 -05:00
|
|
|
MATCHERS_4: alertname=CephNodeDiskspaceWarning device=/dev/vda6
|
2024-02-29 11:53:55 -06:00
|
|
|
securityContext:
|
|
|
|
allowPrivilegeEscalation: false
|
|
|
|
readOnlyRootFilesystem: true
|
|
|
|
capabilities: { drop: ["ALL"] }
|
|
|
|
resources:
|
|
|
|
requests:
|
|
|
|
cpu: 25m
|
|
|
|
limits:
|
|
|
|
memory: 128Mi
|
|
|
|
pod:
|
|
|
|
securityContext:
|
|
|
|
runAsUser: 568
|
|
|
|
runAsGroup: 568
|
|
|
|
runAsNonRoot: true
|