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

60 lines
1.6 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
labels:
io.kompose.service: pusher
name: pusher
spec:
replicas: 1
selector:
matchLabels:
io.kompose.service: pusher
strategy:
type: Recreate
template:
metadata:
labels:
io.kompose.service: pusher
spec:
containers:
- command:
- yarn
- run
- runprod
env:
- name: ADMIN_API_TOKEN
- name: API_URL
value: back:50051
- name: DEBUG
value: socket:*
- name: DISABLE_ANONYMOUS
- name: FRONT_URL
value: http://play.workadventure.localhost
- name: JITSI_ISS
- name: JITSI_URL
- name: OPID_CLIENT_ID
- name: OPID_CLIENT_ISSUER
- name: OPID_CLIENT_REDIRECT_URL
- name: OPID_CLIENT_SECRET
- name: OPID_PROFILE_SCREEN_PROVIDER
- 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
image: thecodingmachine/workadventure-pusher:v1.6.4
name: pusher
resources: {}
volumeMounts:
- mountPath: /usr/src/app
name: pusher-claim0
restartPolicy: Always
volumes:
- name: pusher-claim0
persistentVolumeClaim:
claimName: pusher-claim0
status: {}