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

@@ -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