theshire/kubernetes/apps/observability/alertmanager-silencer/app/helmrelease.yaml

60 lines
1.8 KiB
YAML
Raw Normal View History

---
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
apiVersion: helm.toolkit.fluxcd.io/v2beta2
kind: HelmRelease
metadata:
name: alertmanager-silencer
spec:
interval: 30m
chart:
spec:
chart: app-template
2024-03-19 17:20:21 -05:00
version: 3.0.4
sourceRef:
kind: HelmRepository
name: bjw-s
namespace: flux-system
install:
remediation:
retries: 3
upgrade:
cleanupOnFail: true
remediation:
retries: 3
strategy: rollback
dependsOn:
- name: kube-prometheus-stack
namespace: observability
values:
controllers:
2024-03-19 17:38:08 -05:00
alertmanager-silencer:
type: cronjob
cronjob:
schedule: "@daily"
containers:
2024-03-19 17:38:08 -05:00
app:
image:
repository: ghcr.io/onedr0p/kubanetics
tag: 2024.3.5@sha256:a95d3fa86b0b042c60ec428eba87ce173d183e5e2f8fa33b23fe79c93c7c1d3f
env:
SCRIPT_NAME: alertmanager-silencer.sh
ALERTMANAGER_URL: http://alertmanager-operated.observability.svc.cluster.local:9093
MATCHERS_0: alertname=NodeCPUHighUsage job=node-exporter
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
securityContext:
allowPrivilegeEscalation: false
readOnlyRootFilesystem: true
capabilities: { drop: ["ALL"] }
resources:
requests:
cpu: 25m
limits:
memory: 128Mi
pod:
securityContext:
runAsUser: 568
runAsGroup: 568
runAsNonRoot: true