apiVersion: apps/v1 kind: Deployment metadata: annotations: name: {{ .Release.Name}}-pusher spec: replicas: 1 selector: matchLabels: app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/component: pusher strategy: type: Recreate template: metadata: labels: app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/component: pusher spec: containers: - command: - yarn - run - runprod env: - name: ADMIN_API_TOKEN - name: API_URL value: {{ .Release.Name}}-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 ports: - containerPort: 8080 securityContext: runAsUser: 0 restartPolicy: Always --- apiVersion: v1 kind: Service metadata: name: {{ .Release.Name }}-pusher labels: app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/component: pusher spec: type: ClusterIP ports: - port: 8080 name: http selector: app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/component: pusher