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 ports: - containerPort: 8080 resources: {} 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