k3s/namespaces/apps/linkwarden/patches/deployment.yaml
Jonathan Leech-Pepin ae1a0b7e10
Initial Kustomize template
Existing deployments are being migrated to Kustomize for templating purposes.
This might not actually save space due to number of patches but it does reduce
the amount of changes that need to be made to portions that only need name
changes.

Existing resources that are not going to be kustomized will be added in
subsequent commits.
2025-01-30 09:49:53 -05:00

57 lines
1.6 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: app
spec:
template:
spec:
containers:
- name: linkwarden
image: ghcr.io/linkwarden/linkwarden:v2.9.1
envFrom:
- configMapRef:
name: linkwarden-config
env:
# Consume the secret
- name: DATABASE_URL
valueFrom:
secretKeyRef:
name: linkwarden-secrets
key: DATABASE_URL
optional: false
- name: NEXTAUTH_SECRET
valueFrom:
secretKeyRef:
name: linkwarden-secrets
key: NEXTAUTH_SECRET
optional: false
- name: AUTHENTIK_CLIENT_SECRET
valueFrom:
secretKeyRef:
name: linkwarden-secrets
key: AUTHENTIK_CLIENT_SECRET
optional: false
- name: EMAIL_SERVER
valueFrom:
secretKeyRef:
name: smtp-secrets
key: SMTP_SERVER
optional: false
ports:
- containerPort: 3000
protocol: TCP
name: linkwarden
resources:
requests:
cpu: 250m
memory: 512Mi
# Mount the volume
volumeMounts:
- mountPath: /data/data
name: linkwarden
subPath: "data"
restartPolicy: Always
volumes:
- name: linkwarden
persistentVolumeClaim:
claimName: linkwarden-pvc