pigallery2-k8s/pigallery2-deployment.yaml
Julien Cabillot 2d9dd339d0 cleanup
2021-06-29 12:30:47 -04:00

53 lines
1.2 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
- mountPath: /app/data/images
name: images
- mountPath: /app/data/tmp
name: tmp
restartPolicy: Always
volumes:
- name: config
persistentVolumeClaim:
claimName: config
- name: db-data
persistentVolumeClaim:
claimName: db-data
- name: images
persistentVolumeClaim:
claimName: images
- name: tmp
persistentVolumeClaim:
claimName: tmp
replicas: 1
selector:
matchLabels:
app: "pigallery2"