k3s/retired-services/readmeabook/readmeabook-deployment.yaml

67 lines
1.9 KiB
YAML
Raw Permalink Normal View History

2026-06-16 13:25:12 -04:00
apiVersion: apps/v1
kind: Deployment
metadata:
name: readmeabook
labels:
app: readmeabook
spec:
replicas: 1
selector:
matchLabels:
app: readmeabook
strategy:
type: Recreate
template:
metadata:
labels:
app: readmeabook
spec:
containers:
- name: readmeabook
image: ghcr.io/kikootwo/readmeabook:latest
env:
- name: TZ
value: America/New_York
- name: PUBLIC_URL
value: "https://albatross.mynest.love"
ports:
- containerPort: 3030
protocol: TCP
name: web-ui
volumeMounts:
- mountPath: /media
name: readmeabook-media
- mountPath: /downloads
name: readmeabook-downloads
- mountPath: /app/config
name: readmeabook-config
- mountPath: /app/cache
name: readmeabook-cache
- mountPath: /var/lib/postgresql/data
name: readmeabook-pgdata
subPath: postgres-data
- mountPath: /var/lib/redis
name: readmeabook-redis
restartPolicy: Always
volumes:
- name: readmeabook-media
nfs:
server: robin.home.nest
path: /yarr/media/audiobooks
- name: readmeabook-downloads
nfs:
server: robin.home.nest
path: /yarr/downloads
- name: readmeabook-config
persistentVolumeClaim:
claimName: readmeabook-config-pvc
- name: readmeabook-cache
persistentVolumeClaim:
claimName: readmeabook-cache-pvc
- name: readmeabook-pgdata
persistentVolumeClaim:
claimName: readmeabook-pgdata-pvc
- name: readmeabook-redis
persistentVolumeClaim:
claimName: readmeabook-redis-pvc