ungleich-k8s/apps/workadventure/v3/templates/back-deployment.yaml
2021-12-19 14:07:54 +01:00

69 lines
1.8 KiB
YAML

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
securityContext:
runAsUser: 0
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