chore(ntfy): Added Ntfy for Notifications
All checks were successful
Validate K8s manifests / validate-manifests (push) Successful in 3s
Validate K8s manifests / scan-secrets (push) Successful in 3m13s

This commit is contained in:
Daniël Groothuis
2025-10-23 23:03:06 +02:00
parent 096f1e3204
commit a8964422f7
8 changed files with 127 additions and 0 deletions

View File

@@ -13,3 +13,4 @@ resources:
- pocket-id
- vaultwarden
- mailu
- ntfy

View File

@@ -0,0 +1,17 @@
---
apiVersion: argoproj.io/v1alpha1
kind: AppProject
metadata:
name: ntfy
spec:
description: Notification server
sourceRepos:
- '*'
sourceNamespaces:
- '*'
destinations:
- namespace: 'ntfy'
server: '*'
clusterResourceWhitelist:
- group: '*'
kind: '*'

View File

@@ -0,0 +1,24 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: ntfy
namespace: ntfy
labels:
platform.dgse.cloud/cluster: artemis
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
project: ntfy
source:
repoURL: 'https://git.dgse.cloud/DGSE/kubernetes.git'
path: manifests/artemis/ntfy
targetRevision: main
destination:
namespace: ntfy
name: in-cluster
syncPolicy:
syncOptions:
- CreateNamespace=true
automated:
prune: true
selfHeal: true

View File

@@ -0,0 +1,7 @@
---
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- app-project.yaml
- application.yaml

View File

@@ -0,0 +1,9 @@
---
apiVersion: v1
kind: ConfigMap
metadata:
name: ntfy
data:
server.yml: |
# Template: https://github.com/binwiederhier/ntfy/blob/main/server/server.yml
base-url: https://notifications.dgse.cloud

View File

@@ -0,0 +1,33 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: ntfy
spec:
selector:
matchLabels:
app: ntfy
template:
metadata:
labels:
app: ntfy
spec:
containers:
- name: ntfy
image: binwiederhier/ntfy
args: ["serve"]
resources:
limits:
memory: "128Mi"
cpu: "500m"
ports:
- containerPort: 80
name: http
volumeMounts:
- name: config
mountPath: "/etc/ntfy"
readOnly: true
volumes:
- name: config
configMap:
name: ntfy

View File

@@ -0,0 +1,24 @@
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
annotations:
cert-manager.io/cluster-issuer: letsencrypt
labels:
name: ntfy
spec:
rules:
- host: notifications.dgse.cloud
http:
paths:
- backend:
service:
name: ntfy
port:
number: 80
path: /
pathType: Prefix
tls:
- hosts:
- notifications.dgse.cloud
secretName: letsencrypt

View File

@@ -0,0 +1,12 @@
---
# Basic service for port 80
apiVersion: v1
kind: Service
metadata:
name: ntfy
spec:
selector:
app: ntfy
ports:
- port: 80
targetPort: 80