ungleich-k8s/apps/workadventure/v2/front-deployment.yaml
2021-12-19 11:46:55 +01:00

70 lines
2.2 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
labels:
io.kompose.service: front
name: front
spec:
replicas: 1
selector:
matchLabels:
io.kompose.service: front
strategy:
type: Recreate
template:
metadata:
labels:
io.kompose.service: front
spec:
containers:
- env:
- name: DEBUG_MODE
- name: DISABLE_ANONYMOUS
- name: DISABLE_NOTIFICATIONS
- name: HOST
value: 0.0.0.0
- name: ICON_URL
value: //icon.workadventure.localhost
- name: JITSI_PRIVATE_MODE
- name: JITSI_URL
- name: LIVE_RELOAD
value: "true"
- name: MAX_PER_GROUP
- name: MAX_USERNAME_LENGTH
- name: NODE_ENV
value: development
- name: OPID_LOGIN_SCREEN_PROVIDER
- name: PUSHER_URL
value: //pusher.workadventure.localhost
- name: SKIP_RENDER_OPTIMIZATIONS
- name: STARTUP_COMMAND_1
value: ./templater.sh
- name: STARTUP_COMMAND_2
value: yarn install
- name: START_ROOM_URL
- name: STUN_SERVER
value: stun:stun.l.google.com:19302
- name: TURN_PASSWORD
- name: TURN_SERVER
value: turn:coturn.workadventure.localhost:3478,turns:coturn.workadventure.localhost:5349
- name: TURN_USER
- name: UPLOADER_URL
value: //uploader.workadventure.localhost
securityContext:
runAsUser: 0
image: thecodingmachine/workadventure-front:v1.6.4
name: front
command:
- sh
- -c
- "./templater.sh; yarn install; node /usr/local/bin/enable_apache_mods.js | bash; node /usr/local/bin/startup_commands.js | bash ; /usr/local/bin/apache-expose-envvars.sh; apache2-foreground"
resources: {}
volumeMounts:
- mountPath: /usr/src/app
name: front-claim0
restartPolicy: Always
volumes:
- name: front-claim0
persistentVolumeClaim:
claimName: front-claim0
status: {}