ungleich-k8s/apps/workadventure/v1/back-deployment.yaml

62 lines
1.6 KiB
YAML
Raw Normal View History

apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
labels:
io.kompose.service: back
name: back
spec:
replicas: 1
selector:
matchLabels:
io.kompose.service: back
strategy:
type: Recreate
template:
metadata:
labels:
io.kompose.service: back
spec:
containers:
- command:
- yarn
- run
- runprod
env:
- name: ADMIN_API_TOKEN
- name: ALLOW_ARTILLERY
value: "true"
- name: DEBUG
value: '*'
- name: JITSI_ISS
- name: JITSI_URL
- name: MAX_PER_GROUP
value: MAX_PER_GROUP
- name: NODE_ENV
value: development
- name: REDIS_HOST
value: redis
- name: SECRET_JITSI_KEY
- name: SECRET_KEY
value: yourSecretKey
- name: STARTUP_COMMAND_1
value: yarn install
- name: STARTUP_COMMAND_2
value: while [ ! -f /usr/src/app/src/Messages/generated/messages_pb.js ]; do sleep 1; done
- name: STORE_VARIABLES_FOR_LOCAL_MAPS
value: "true"
- name: TURN_STATIC_AUTH_SECRET
value: SomeStaticAuthSecret
image: thecodingmachine/workadventure-back:v1.6.4
name: back
resources: {}
volumeMounts:
- mountPath: /usr/src/app
name: back-claim0
restartPolicy: Always
volumes:
- name: back-claim0
persistentVolumeClaim:
claimName: back-claim0
status: {}