ungleich-k8s/apps/workadventure/v3/templates/front-deployment.yaml

83 lines
2.4 KiB
YAML
Raw Normal View History

apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ .Release.Name}}-front
spec:
replicas: 1
selector:
matchLabels:
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/component: front
strategy:
type: Recreate
template:
metadata:
labels:
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/component: front
spec:
containers:
- env:
# FIXME
- name: DEBUG_MODE
# FIXME
- name: DISABLE_ANONYMOUS
- name: DISABLE_NOTIFICATIONS
# FIXME
- name: HOST
value: 0.0.0.0
# FIXME
- name: ICON_URL
value: http://{{ .Release.Name }}-icon
- name: JITSI_PRIVATE_MODE
- name: JITSI_URL
- name: LIVE_RELOAD
value: "true"
- name: MAX_PER_GROUP
- name: MAX_USERNAME_LENGTH
- name: NODE_ENV
value: development
- name: OPID_LOGIN_SCREEN_PROVIDER
- name: PUSHER_URL
value: http://{{ .Release.Name }}-pusher
- name: SKIP_RENDER_OPTIMIZATIONS
- name: START_ROOM_URL
- name: STUN_SERVER
value: stun:stun.l.google.com:19302
- name: TURN_SERVER
2021-12-19 13:07:54 +00:00
value: turn:{{ .Release.Name }}-coturn:3478,turns:{{ .Release.Name }}-coturn:5349
- name: TURN_USER
2021-12-19 13:07:54 +00:00
- name: TURN_PASSWORD
# FIXME: create that instance
- name: UPLOADER_URL
2021-12-19 13:07:54 +00:00
value: http://{{ .Release.Name }}-uploader
ports:
2021-12-19 13:07:54 +00:00
- containerPort: 80
securityContext:
runAsUser: 0
image: thecodingmachine/workadventure-front:v1.6.4
name: front
command:
- sh
- -c
- "./templater.sh; yarn install; node /usr/local/bin/enable_apache_mods.js | bash; node /usr/local/bin/startup_commands.js | bash ; /usr/local/bin/apache-expose-envvars.sh; apache2-foreground"
resources: {}
restartPolicy: Always
---
apiVersion: v1
kind: Service
metadata:
name: {{ .Release.Name }}-front
labels:
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/component: front
spec:
type: ClusterIP
ports:
2021-12-19 13:07:54 +00:00
- port: 80
name: http
selector:
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/component: front