pigallery2-k8s/pigallery2-deployment.yaml
2022-02-28 11:40:00 -05:00

55 lines
1.3 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: "pigallery2"
labels:
io.kompose.service: pigallery2
spec:
strategy:
type: Recreate
template:
metadata:
labels:
io.kompose.service: pigallery2
app: "pigallery2"
spec:
automountServiceAccountToken: false
containers:
- name: "pigallery2"
image: "bpatrik/pigallery2:latest-debian-buster"
env:
- name: NODE_ENV
value: production
ports:
- containerPort: 80
resources: {}
volumeMounts:
- mountPath: /app/data/config
name: config
- mountPath: /app/data/db
name: db-data
- name: "images"
mountPath: "/app/data/images"
- name: tmp
mountPath: /app/data/tmp
restartPolicy: Always
volumes:
- name: config
persistentVolumeClaim:
claimName: config
- name: db-data
persistentVolumeClaim:
claimName: db-data
- name: "images"
nfs:
server: "odroidhc2.local"
path: "/mnt/photos_sanitized"
readOnly: true
- name: tmp
persistentVolumeClaim:
claimName: tmp
replicas: 1
selector:
matchLabels:
app: "pigallery2"