feat: add podmonitors to synapse and ntfy

This commit is contained in:
Tommy 2024-04-13 22:38:49 +02:00
parent 85a3896f51
commit 061333b1d6
No known key found for this signature in database
6 changed files with 52 additions and 10 deletions

View file

@ -2,10 +2,17 @@ apiVersion: v2
name: matrix-synapse
description: Matrix homeserver
icon: https://matrix.org/images/matrix-logo.svg
appVersion: 1.99.0
appVersion: v1.104.0
type: application
version: 4.1.0
version: 4.2.0
maintainers:
- name: Tommy Skaug
email: tommy@skaug.me
keywords:
- matrix
- synapse
- homeserver
sources:
- https://github.com/element-hq/synapse
- https://element-hq.github.io/synapse/latest/

View file

@ -0,0 +1,17 @@
{{- if .Values.prometheus.podmonitor.enabled }}
apiVersion: monitoring.coreos.com/v1
kind: PodMonitor
metadata:
name: {{ include "matrix-synapse.fullname" . }}
labels:
{{- include "matrix-synapse.labels" . | nindent 4 }}
app.kubernetes.io/component: synapse
spec:
selector:
matchLabels:
{{- include "matrix-synapse.selectorLabels" . | nindent 6 }}
app.kubernetes.io/component: synapse
podMetricsEndpoints:
- port: metrics
path: "/_synapse/metrics"
{{- end }}

View file

@ -7,13 +7,12 @@ initContainers:
- secretRef:
name: synapse-secret
## Docker image configuration, used for Synapse and workers.
##
prometheus:
podmonitor:
enabled: true
image:
repository: matrixdotorg/synapse
## Tag to override with, will default to the application version.
##
# tag: ''
repository: ghcr.io/element-hq/synapse
pullPolicy: IfNotPresent
## Optionally specify an array of imagePullSecrets.
## Secrets must be manually created in the namespace.

View file

@ -4,7 +4,7 @@ description: |
ntfy lets you send push notifications to your phone or desktop via scripts from any computer
appVersion: v2.10.0
type: application
version: 0.2.0
version: 0.2.1
maintainers:
- name: Tommy Skaug
email: tommy@skaug.me

View file

@ -0,0 +1,15 @@
{{- if .Values.prometheus.podmonitor.enabled }}
apiVersion: monitoring.coreos.com/v1
kind: PodMonitor
metadata:
name: {{ include "ntfy.fullname" . }}
labels:
{{- include "ntfy.labels" . | nindent 4 }}
spec:
selector:
matchLabels:
{{- include "ntfy.selectorLabels" . | nindent 6 }}
podMetricsEndpoints:
- port: metrics
path: "/metrics"
{{- end }}

View file

@ -6,4 +6,8 @@ persistence:
image:
repository: binwiederhier/ntfy
tag: v2.10.0
tag: v2.10.0
prometheus:
podmonitor:
enabled: true