2024-02-29 11:53:55 -06:00
|
|
|
---
|
|
|
|
# yaml-language-server: $schema=https://ks.hsn.dev/helm.toolkit.fluxcd.io/helmrelease_v2beta2.json
|
|
|
|
apiVersion: helm.toolkit.fluxcd.io/v2beta2
|
|
|
|
kind: HelmRelease
|
|
|
|
metadata:
|
|
|
|
name: alertmanager-silencer
|
|
|
|
spec:
|
|
|
|
interval: 30m
|
|
|
|
chart:
|
|
|
|
spec:
|
|
|
|
chart: app-template
|
|
|
|
version: 2.6.0
|
|
|
|
sourceRef:
|
|
|
|
kind: HelmRepository
|
|
|
|
name: bjw-s
|
|
|
|
namespace: flux-system
|
|
|
|
install:
|
|
|
|
remediation:
|
|
|
|
retries: 3
|
|
|
|
upgrade:
|
|
|
|
cleanupOnFail: true
|
|
|
|
remediation:
|
|
|
|
retries: 3
|
|
|
|
uninstall:
|
|
|
|
keepHistory: false
|
|
|
|
dependsOn:
|
|
|
|
- name: kube-prometheus-stack
|
|
|
|
namespace: observability
|
|
|
|
values:
|
|
|
|
controllers:
|
|
|
|
main:
|
|
|
|
type: cronjob
|
|
|
|
cronjob:
|
|
|
|
schedule: "@daily"
|
|
|
|
containers:
|
|
|
|
main:
|
|
|
|
image:
|
|
|
|
repository: ghcr.io/onedr0p/kubanetics
|
2024-03-06 15:00:58 -06:00
|
|
|
tag: 2024.3.3@sha256:3a67297acb996356b4721e95e136ba41baed35e235a63dff18d6bfe58b42107d
|
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
|
|
|
|
securityContext:
|
|
|
|
allowPrivilegeEscalation: false
|
|
|
|
readOnlyRootFilesystem: true
|
|
|
|
capabilities: { drop: ["ALL"] }
|
|
|
|
probes:
|
|
|
|
liveness: &noProbes
|
|
|
|
enabled: false
|
|
|
|
readiness: *noProbes
|
|
|
|
startup: *noProbes
|
|
|
|
resources:
|
|
|
|
requests:
|
|
|
|
cpu: 25m
|
|
|
|
limits:
|
|
|
|
memory: 128Mi
|
|
|
|
pod:
|
|
|
|
securityContext:
|
|
|
|
runAsUser: 568
|
|
|
|
runAsGroup: 568
|
|
|
|
runAsNonRoot: true
|
|
|
|
service:
|
|
|
|
main:
|
|
|
|
enabled: false
|