From 605361446625173e6b2d4a9d6da232c1bff5efc0 Mon Sep 17 00:00:00 2001 From: gitea-bot Date: Sun, 5 Apr 2026 00:45:57 +0000 Subject: [PATCH] chore: Update manifests after change --- .../Cluster-ntfy-postgresql-18-cluster.yaml | 13 ++++- .../manifests/ntfy/Deployment-ntfy-debug.yaml | 53 +++++++++++++++++++ ...nt-ntfy.yaml => Deployment-ntfy-main.yaml} | 23 ++++---- 3 files changed, 74 insertions(+), 15 deletions(-) create mode 100644 clusters/cl01tl/manifests/ntfy/Deployment-ntfy-debug.yaml rename clusters/cl01tl/manifests/ntfy/{Deployment-ntfy.yaml => Deployment-ntfy-main.yaml} (84%) diff --git a/clusters/cl01tl/manifests/ntfy/Cluster-ntfy-postgresql-18-cluster.yaml b/clusters/cl01tl/manifests/ntfy/Cluster-ntfy-postgresql-18-cluster.yaml index 77108d5a9..e62d34eaf 100644 --- a/clusters/cl01tl/manifests/ntfy/Cluster-ntfy-postgresql-18-cluster.yaml +++ b/clusters/cl01tl/manifests/ntfy/Cluster-ntfy-postgresql-18-cluster.yaml @@ -52,6 +52,15 @@ spec: barmanObjectName: "ntfy-postgresql-18-backup-garage-local" serverName: "ntfy-postgresql-18-backup-1" bootstrap: - initdb: + recovery: database: app - owner: app + source: ntfy-postgresql-18-backup-1 + externalClusters: + - name: ntfy-postgresql-18-backup-1 + plugin: + name: barman-cloud.cloudnative-pg.io + enabled: true + isWALArchiver: false + parameters: + barmanObjectName: "ntfy-postgresql-18-recovery" + serverName: ntfy-postgresql-18-backup-1 diff --git a/clusters/cl01tl/manifests/ntfy/Deployment-ntfy-debug.yaml b/clusters/cl01tl/manifests/ntfy/Deployment-ntfy-debug.yaml new file mode 100644 index 000000000..c930af9c1 --- /dev/null +++ b/clusters/cl01tl/manifests/ntfy/Deployment-ntfy-debug.yaml @@ -0,0 +1,53 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: ntfy-debug + labels: + app.kubernetes.io/controller: debug + app.kubernetes.io/instance: ntfy + app.kubernetes.io/managed-by: Helm + app.kubernetes.io/name: ntfy + helm.sh/chart: ntfy-4.6.2 + namespace: ntfy +spec: + revisionHistoryLimit: 3 + replicas: 1 + strategy: + type: Recreate + selector: + matchLabels: + app.kubernetes.io/controller: debug + app.kubernetes.io/name: ntfy + app.kubernetes.io/instance: ntfy + template: + metadata: + labels: + app.kubernetes.io/controller: debug + app.kubernetes.io/instance: ntfy + app.kubernetes.io/name: ntfy + spec: + enableServiceLinks: false + serviceAccountName: default + automountServiceAccountToken: true + hostIPC: false + hostNetwork: false + hostPID: false + dnsPolicy: ClusterFirst + containers: + - command: + - sleep + - infinity + image: ubuntu/go:1.22-24.04_stable + name: main + resources: + requests: + cpu: 10m + memory: 32Mi + volumeMounts: + - mountPath: /var/cache/ntfy + name: cache + readOnly: true + volumes: + - name: cache + persistentVolumeClaim: + claimName: ntfy diff --git a/clusters/cl01tl/manifests/ntfy/Deployment-ntfy.yaml b/clusters/cl01tl/manifests/ntfy/Deployment-ntfy-main.yaml similarity index 84% rename from clusters/cl01tl/manifests/ntfy/Deployment-ntfy.yaml rename to clusters/cl01tl/manifests/ntfy/Deployment-ntfy-main.yaml index be1ccc338..754f9086a 100644 --- a/clusters/cl01tl/manifests/ntfy/Deployment-ntfy.yaml +++ b/clusters/cl01tl/manifests/ntfy/Deployment-ntfy-main.yaml @@ -1,7 +1,7 @@ apiVersion: apps/v1 kind: Deployment metadata: - name: ntfy + name: ntfy-main labels: app.kubernetes.io/controller: main app.kubernetes.io/instance: ntfy @@ -11,7 +11,7 @@ metadata: namespace: ntfy spec: revisionHistoryLimit: 3 - replicas: 1 + replicas: 0 strategy: type: Recreate selector: @@ -43,17 +43,8 @@ spec: value: https://ntfy.alexlebens.net - name: NTFY_LISTEN_HTTP value: :80 - - name: NTFY_CACHE_FILE - value: /var/cache/ntfy/cache.db - name: NTFY_CACHE_DURATION value: 36h - - name: NTFY_CACHE_STARTUP_QUERIES - value: | - pragma journal_mode = WAL; - pragma synchronous = normal; - pragma temp_store = memory; - pragma busy_timeout = 15000; - vacuum; - name: NTFY_BEHIND_PROXY value: "true" - name: NTFY_ATTACHMENT_CACHE_DIR @@ -73,8 +64,6 @@ spec: value: "true" - name: NTFY_ENABLE_RESERVATIONS value: "false" - - name: NTFY_AUTH_FILE - value: /var/cache/ntfy/user.db - name: NTFY_AUTH_DEFAULT_ACCESS value: deny-all - name: NTFY_METRICS_LISTEN_HTTP @@ -82,6 +71,14 @@ spec: - name: NTFY_LOG_LEVEL value: info image: binwiederhier/ntfy:v2.21.0@sha256:2b9e12d56a538f4402da51328eeca02696c4b207ab7fbe031c27e51a22ca9b86 + livenessProbe: + httpGet: + path: /v1/health + port: 80 + initialDelaySeconds: 60 + periodSeconds: 60 + successThreshold: 1 + timeoutSeconds: 30 name: main resources: requests: -- 2.49.1