k3s/namespaces/monitoring/umami/patches/deployment.yaml

43 lines
1.1 KiB
YAML
Raw Normal View History

2025-02-18 16:27:23 -05:00
apiVersion: apps/v1
kind: Deployment
metadata:
name: app
spec:
template:
spec:
tolerations:
- key: "public"
operator: "Equal"
value: "true"
effect: "NoSchedule"
affinity:
nodeAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 100
preference:
matchExpressions:
- key: public
operator: In
values:
- "true"
containers:
- name: umami
image: ghcr.io/umami-software/umami:postgresql-latest
envFrom:
- configMapRef:
name: umami-config
env:
- name: SECRET_KEY
valueFrom:
secretKeyRef:
name: umami-secrets
key: UMAMI_APP_SECRET
- name: DATABASE_URL
valueFrom:
secretKeyRef:
name: umami-secrets
key: UMAMI_POSTGRESQL_CONNECTION
ports:
- containerPort: 3000
name: umami