51 lines
1.4 KiB
YAML
51 lines
1.4 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
labels:
|
|
io.kompose.service: messages
|
|
name: messages
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
io.kompose.service: messages
|
|
strategy:
|
|
type: Recreate
|
|
template:
|
|
metadata:
|
|
labels:
|
|
io.kompose.service: messages
|
|
spec:
|
|
containers:
|
|
- env:
|
|
- name: STARTUP_COMMAND_1
|
|
value: yarn install
|
|
- name: STARTUP_COMMAND_2
|
|
value: yarn run proto:watch
|
|
image: thecodingmachine/workadventure-back-base:latest
|
|
name: messages
|
|
resources: {}
|
|
volumeMounts:
|
|
- mountPath: /usr/src/app
|
|
name: messages-claim0
|
|
- mountPath: /usr/src/back
|
|
name: messages-claim1
|
|
- mountPath: /usr/src/front
|
|
name: messages-claim2
|
|
- mountPath: /usr/src/pusher
|
|
name: messages-claim3
|
|
restartPolicy: Always
|
|
volumes:
|
|
- name: messages-claim0
|
|
persistentVolumeClaim:
|
|
claimName: messages-claim0
|
|
- name: messages-claim1
|
|
persistentVolumeClaim:
|
|
claimName: messages-claim1
|
|
- name: messages-claim2
|
|
persistentVolumeClaim:
|
|
claimName: messages-claim2
|
|
- name: messages-claim3
|
|
persistentVolumeClaim:
|
|
claimName: messages-claim3
|
|
status: {}
|