2021-12-19 12:29:41 +00:00
|
|
|
apiVersion: apps/v1
|
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
|
|
|
annotations:
|
|
|
|
labels:
|
|
|
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
|
|
|
app.kubernetes.io/component: back
|
|
|
|
name: {{ .Release.Name }}-back
|
|
|
|
spec:
|
|
|
|
replicas: 1
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
|
|
|
app.kubernetes.io/component: back
|
|
|
|
strategy:
|
|
|
|
type: Recreate
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
|
|
|
app.kubernetes.io/component: back
|
|
|
|
spec:
|
|
|
|
containers:
|
|
|
|
- command:
|
|
|
|
- sh
|
|
|
|
- -c
|
|
|
|
- "yarn install && 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: {{ .Release.Name}}-redis
|
|
|
|
- name: SECRET_JITSI_KEY
|
|
|
|
- name: SECRET_KEY
|
|
|
|
value: yourSecretKey
|
|
|
|
- name: STORE_VARIABLES_FOR_LOCAL_MAPS
|
|
|
|
value: "true"
|
|
|
|
- name: TURN_STATIC_AUTH_SECRET
|
|
|
|
value: SomeStaticAuthSecret
|
|
|
|
image: thecodingmachine/workadventure-back:v1.6.4
|
|
|
|
name: back
|
2021-12-19 13:07:54 +00:00
|
|
|
securityContext:
|
|
|
|
runAsUser: 0
|
2021-12-19 12:29:41 +00:00
|
|
|
restartPolicy: Always
|
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
|
|
kind: Service
|
|
|
|
metadata:
|
|
|
|
name: {{ .Release.Name }}-back
|
|
|
|
labels:
|
|
|
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
|
|
|
app.kubernetes.io/component: back
|
|
|
|
spec:
|
|
|
|
type: ClusterIP
|
|
|
|
ports:
|
|
|
|
- port: 80
|
|
|
|
name: http
|
|
|
|
selector:
|
|
|
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
|
|
|
app.kubernetes.io/component: back
|