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
|
|
|
|
|
- mountPath: /app/data/images
|
2021-06-29 12:09:06 -04:00
|
|
|
name: images
|
2021-06-29 12:02:54 -04:00
|
|
|
- mountPath: /app/data/tmp
|
2021-06-29 12:09:06 -04:00
|
|
|
name: 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-29 12:09:06 -04:00
|
|
|
- name: images
|
2021-06-29 12:02:54 -04:00
|
|
|
persistentVolumeClaim:
|
2021-06-29 12:09:06 -04:00
|
|
|
claimName: images
|
|
|
|
|
- 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"
|