argocd-test/tweakers-va-notifier/base/tweakers-va-notifier-deployment.yaml

46 lines
1.3 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: tweakers-va-notifier
namespace: tweakers-va-notifier
spec:
replicas: 1
strategy:
type: Recreate
selector:
matchLabels:
app: tweakers-va-notifier
template:
metadata:
labels:
app: tweakers-va-notifier
spec:
volumes:
- name: tweakers-va-notifier
persistentVolumeClaim:
claimName: tweakers-va-notifier-pvc
containers:
- image: git.mziesel.nl/mans/tweakers-va-notifier:2025-05-06
imagePullPolicy: Always
name: tweakers-va-notifier
env:
# kubectl -n tweakers-va-notifier create secret generic tweakers-va-notifier --from-literal=discord_webhook=<discord_webhook_value>
- name: DISCORD_WEBHOOK
valueFrom:
secretKeyRef:
name: tweakers-va-notifier
key: discord_webhook
- name: INTERESTING_CATEGORIES
valueFrom:
secretKeyRef:
name: tweakers-va-notifier
key: interesting_categories
- name: NTFY_URL
valueFrom:
secretKeyRef:
name: tweakers-va-notifier
key: ntfy_url
volumeMounts:
- mountPath: /app/db
name: tweakers-va-notifier