feat: add podmonitors to synapse and ntfy
This commit is contained in:
parent
85a3896f51
commit
061333b1d6
6 changed files with 52 additions and 10 deletions
|
@ -2,10 +2,17 @@ apiVersion: v2
|
||||||
name: matrix-synapse
|
name: matrix-synapse
|
||||||
description: Matrix homeserver
|
description: Matrix homeserver
|
||||||
icon: https://matrix.org/images/matrix-logo.svg
|
icon: https://matrix.org/images/matrix-logo.svg
|
||||||
appVersion: 1.99.0
|
appVersion: v1.104.0
|
||||||
|
|
||||||
type: application
|
type: application
|
||||||
version: 4.1.0
|
version: 4.2.0
|
||||||
maintainers:
|
maintainers:
|
||||||
- name: Tommy Skaug
|
- name: Tommy Skaug
|
||||||
email: tommy@skaug.me
|
email: tommy@skaug.me
|
||||||
|
keywords:
|
||||||
|
- matrix
|
||||||
|
- synapse
|
||||||
|
- homeserver
|
||||||
|
sources:
|
||||||
|
- https://github.com/element-hq/synapse
|
||||||
|
- https://element-hq.github.io/synapse/latest/
|
||||||
|
|
17
charts/matrix-synapse/templates/podmonitor.yaml
Normal file
17
charts/matrix-synapse/templates/podmonitor.yaml
Normal 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 }}
|
|
@ -7,13 +7,12 @@ initContainers:
|
||||||
- secretRef:
|
- secretRef:
|
||||||
name: synapse-secret
|
name: synapse-secret
|
||||||
|
|
||||||
## Docker image configuration, used for Synapse and workers.
|
prometheus:
|
||||||
##
|
podmonitor:
|
||||||
|
enabled: true
|
||||||
|
|
||||||
image:
|
image:
|
||||||
repository: matrixdotorg/synapse
|
repository: ghcr.io/element-hq/synapse
|
||||||
## Tag to override with, will default to the application version.
|
|
||||||
##
|
|
||||||
# tag: ''
|
|
||||||
pullPolicy: IfNotPresent
|
pullPolicy: IfNotPresent
|
||||||
## Optionally specify an array of imagePullSecrets.
|
## Optionally specify an array of imagePullSecrets.
|
||||||
## Secrets must be manually created in the namespace.
|
## Secrets must be manually created in the namespace.
|
||||||
|
|
|
@ -4,7 +4,7 @@ description: |
|
||||||
ntfy lets you send push notifications to your phone or desktop via scripts from any computer
|
ntfy lets you send push notifications to your phone or desktop via scripts from any computer
|
||||||
appVersion: v2.10.0
|
appVersion: v2.10.0
|
||||||
type: application
|
type: application
|
||||||
version: 0.2.0
|
version: 0.2.1
|
||||||
maintainers:
|
maintainers:
|
||||||
- name: Tommy Skaug
|
- name: Tommy Skaug
|
||||||
email: tommy@skaug.me
|
email: tommy@skaug.me
|
||||||
|
|
15
charts/ntfy-sh/templates/podmonitor.yaml
Normal file
15
charts/ntfy-sh/templates/podmonitor.yaml
Normal 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 }}
|
|
@ -6,4 +6,8 @@ persistence:
|
||||||
|
|
||||||
image:
|
image:
|
||||||
repository: binwiederhier/ntfy
|
repository: binwiederhier/ntfy
|
||||||
tag: v2.10.0
|
tag: v2.10.0
|
||||||
|
|
||||||
|
prometheus:
|
||||||
|
podmonitor:
|
||||||
|
enabled: true
|
||||||
|
|
Loading…
Reference in a new issue