From 15af90c6d64d4b20ea35ed11042c70c46de5a5e0 Mon Sep 17 00:00:00 2001 From: Tommy Skaug <104122981+tommy-skaug@users.noreply.github.com> Date: Sat, 6 Apr 2024 12:44:57 +0000 Subject: [PATCH] feat(nfty-sh): add configmap and bump version. Additionally enable metrics for Prometheus. --- charts/nfty-sh/Chart.yaml | 2 +- charts/nfty-sh/templates/configuration.yaml | 10 ++++++++++ charts/nfty-sh/templates/deployment-server.yaml | 8 +++++++- 3 files changed, 18 insertions(+), 2 deletions(-) create mode 100644 charts/nfty-sh/templates/configuration.yaml diff --git a/charts/nfty-sh/Chart.yaml b/charts/nfty-sh/Chart.yaml index d253986..5e4bffc 100644 --- a/charts/nfty-sh/Chart.yaml +++ b/charts/nfty-sh/Chart.yaml @@ -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.1.0 +version: 0.1.1 maintainers: - name: Tommy Skaug email: tommy@skaug.me diff --git a/charts/nfty-sh/templates/configuration.yaml b/charts/nfty-sh/templates/configuration.yaml new file mode 100644 index 0000000..5ccf348 --- /dev/null +++ b/charts/nfty-sh/templates/configuration.yaml @@ -0,0 +1,10 @@ +--- +apiVersion: v1 +kind: ConfigMap +metadata: + name: {{ include "nfty-sh.fullname" . }}-server-config + labels: + {{- include "nfty-sh.labels" . | nindent 4 }} +data: + server.yaml: | + enable-metrics: true \ No newline at end of file diff --git a/charts/nfty-sh/templates/deployment-server.yaml b/charts/nfty-sh/templates/deployment-server.yaml index ef8f888..29e711d 100644 --- a/charts/nfty-sh/templates/deployment-server.yaml +++ b/charts/nfty-sh/templates/deployment-server.yaml @@ -45,7 +45,13 @@ metadata: - name: {{ include "nfty-sh.fullname" . }}-server mountPath: "/var/lib/nfty" readOnly: false + - name: config + mountPath: "/etc/ntfy" + readOnly: true volumes: - name: {{ include "nfty-sh.fullname" . }}-server persistentVolumeClaim: - claimName: {{ .Values.persistence.existingClaim }} \ No newline at end of file + claimName: {{ .Values.persistence.existingClaim }} + - name: config + configMap: + name: {{ include "nfty-sh.fullname" . }}-server-config \ No newline at end of file