58 lines
1.7 KiB
YAML
58 lines
1.7 KiB
YAML
---
|
|
# 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/v2
|
|
kind: HelmRelease
|
|
metadata:
|
|
name: alertmanager-silencer
|
|
spec:
|
|
interval: 30m
|
|
chart:
|
|
spec:
|
|
chart: app-template
|
|
version: 3.2.1
|
|
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:
|
|
alertmanager-silencer:
|
|
type: cronjob
|
|
cronjob:
|
|
schedule: "@daily"
|
|
containers:
|
|
app:
|
|
image:
|
|
repository: ghcr.io/onedr0p/kubanetics
|
|
tag: 2024.5.6@sha256:8c11900e6543d70d3cf1c0f137de622fbf26992403a7a3a667c15151ec03f41c
|
|
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=CPUThrottlingHigh container=gc
|
|
MATCHERS_2: alertname=CPUThrottlingHigh container=worker
|
|
securityContext:
|
|
allowPrivilegeEscalation: false
|
|
readOnlyRootFilesystem: true
|
|
capabilities: { drop: ["ALL"] }
|
|
resources:
|
|
requests:
|
|
cpu: 25m
|
|
limits:
|
|
memory: 128Mi
|
|
pod:
|
|
securityContext:
|
|
runAsUser: 568
|
|
runAsGroup: 568
|
|
runAsNonRoot: true
|