flux-charts/infra-monitoring/templates/alertmanager/matrix/release.yaml

66 lines
1.7 KiB
YAML

{{- with .Values.alertmanager.receiver.matrix }}
{{- if .enabled }}
---
apiVersion: helm.toolkit.fluxcd.io/v2beta2
kind: HelmRelease
metadata:
name: "alertmanager-matrix"
spec:
chart:
spec:
sourceRef:
kind: "GitRepository"
name: "wrenix-helm-charts"
namespace: "flux-system"
chart: "./alertmanager-matrix"
reconcileStrategy: "Revision"
install:
{{- toYaml $.Values.commons.helm.release.install | nindent 4 }}
test:
{{- toYaml $.Values.commons.helm.release.test | nindent 4 }}
upgrade:
{{- toYaml $.Values.commons.helm.release.upgrade | nindent 4 }}
driftDetection:
{{- toYaml $.Values.commons.helm.release.driftDetection | nindent 4 }}
interval: 10m
valuesFrom:
- kind: Secret
name: "global-alertmanager-matrix-token"
optional: false
valuesKey: token
targetPath: bot.matrix.token
values:
replicaCount: 1
bot:
matrix:
homeserver: {{ .homeserver | quote }}
userID: {{ .userID | quote }}
rooms:
- {{ .default | quote }}
{{- range $item := .rooms }}
- {{ $item.room | quote }}
{{- end }}
alertmanager: "https://{{ $.Values.alertmanager.ingress.host | default (printf "alertmanager.%s" $.Values.commons.ingress.domain) }}"
showLabels: true
serviceAccount:
create: false
securityContext:
runAsUser: 65534
runAsGroup: 65534
resources:
requests:
memory: "128Mi"
cpu: "100m"
limits:
memory: "256Mi"
tolerations:
{{- toYaml $.Values.commons.tolerations | nindent 6 }}
affinity:
{{- toYaml $.Values.commons.affinity | nindent 6 }}
{{- end }}
{{- end }}