pigallery2-k8s/pigallery2-deployment.yaml

55 lines
1.3 KiB
YAML
Raw Permalink Normal View History

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