mirror of
https://github.com/rubenhensen/k8scd.git
synced 2026-11-15 14:29:09 +01:00
75 lines
2.0 KiB
YAML
75 lines
2.0 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: ntfy
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: ntfy
|
|
strategy:
|
|
type: Recreate
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: ntfy
|
|
spec:
|
|
containers:
|
|
- name: ntfy
|
|
image: binwiederhier/ntfy:v2.38.0
|
|
args: ["serve"]
|
|
env:
|
|
- name: NTFY_BASE_URL
|
|
value: https://ntfy2.rubenhensen.nl
|
|
- name: NTFY_LISTEN_HTTP
|
|
value: ":80"
|
|
- name: NTFY_BEHIND_PROXY
|
|
value: "true"
|
|
- name: NTFY_AUTH_FILE
|
|
value: /var/lib/ntfy/user.db
|
|
- name: NTFY_AUTH_DEFAULT_ACCESS
|
|
value: deny-all
|
|
- name: NTFY_CACHE_FILE
|
|
value: /var/lib/ntfy/cache.db
|
|
# Needed for instant delivery on iOS. ntfy.sh only gets the
|
|
# message ID, never the content.
|
|
- name: NTFY_UPSTREAM_BASE_URL
|
|
value: https://ntfy.sh
|
|
- name: TZ
|
|
value: Europe/Amsterdam
|
|
envFrom:
|
|
- secretRef:
|
|
name: ntfy-auth
|
|
ports:
|
|
- containerPort: 80
|
|
protocol: TCP
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /v1/health
|
|
port: 80
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /v1/health
|
|
port: 80
|
|
resources:
|
|
requests:
|
|
memory: "32Mi"
|
|
cpu: "10m"
|
|
limits:
|
|
memory: "256Mi"
|
|
volumeMounts:
|
|
- name: data
|
|
mountPath: /var/lib/ntfy
|
|
# Trust store without the compromised eMudhra intermediates,
|
|
# see ca-bundle/. Drop once the image ships a fixed bundle.
|
|
- name: patched-ca-bundle
|
|
mountPath: /etc/ssl/certs
|
|
readOnly: true
|
|
volumes:
|
|
- name: data
|
|
persistentVolumeClaim:
|
|
claimName: ntfy-data
|
|
- name: patched-ca-bundle
|
|
configMap:
|
|
name: patched-ca-bundle
|