argocd-test/ntfy/base/ntfy-deployment.yaml

50 lines
1.1 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: ntfy
namespace: ntfy
spec:
replicas: 1
selector:
matchLabels:
app: ntfy
template:
metadata:
labels:
app: ntfy
spec:
containers:
- image: binwiederhier/ntfy:v1.28.0
name: ntfy
args: ["serve"]
env:
- name: TZ
value: Europe/Amsterdam
- name: NTFY_DEBUG
value: "false"
- name: NTFY_LOG_LEVEL
value: INFO
ports:
- name: web
containerPort: 80
resources:
limits:
memory: 300Mi
cpu: 200m
requests:
cpu: 150m
memory: 150Mi
volumeMounts:
- mountPath: /etc/ntfy/
subPath: server.yml
name: config-volume # generated via configMapGenerator from kustomization
- mountPath: /var/cache/ntfy
name: cache-volume
volumes:
- name: config-volume
configMap:
name: server-config
- name: cache-volume
persistentVolumeClaim:
claimName: ntfy-pvc