90 lines
2.8 KiB
YAML
90 lines
2.8 KiB
YAML
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
|
|
annotations:
|
|
checksum/config: {{ include (print $.Template.BasePath "/waconf.yaml") . | sha256sum }}
|
|
spec:
|
|
containers:
|
|
- env:
|
|
- name: DEBUG_MODE
|
|
value: "true"
|
|
- name: DISABLE_ANONYMOUS
|
|
value: "false"
|
|
- name: DISABLE_NOTIFICATIONS
|
|
value: "false"
|
|
- name: HOST
|
|
value: 0.0.0.0
|
|
- name: JITSI_PRIVATE_MODE
|
|
value: "false"
|
|
- name: JITSI_URL
|
|
value: "meet.jit.si"
|
|
- name: LIVE_RELOAD
|
|
value: "true"
|
|
- name: ENABLE_FEATURE_MAP_EDITOR
|
|
value: "false"
|
|
- name: MAX_PER_GROUP
|
|
value: "4"
|
|
- name: MAX_USERNAME_LENGTH
|
|
value: "10"
|
|
- name: NODE_ENV
|
|
value: development
|
|
- name: OPID_LOGIN_SCREEN_PROVIDER
|
|
- name: ICON_URL
|
|
value: http://{{ tpl .Values.iconFQDN . }}
|
|
- name: SKIP_RENDER_OPTIMIZATIONS
|
|
value: "false"
|
|
- name: START_ROOM_URL
|
|
- name: STUN_SERVER
|
|
value: "stun:stun.l.google.com:19302"
|
|
- name: TURN_SERVER
|
|
value: turn:{{ .Release.Name }}-coturn:3478,turns:{{ .Release.Name }}-coturn:5349
|
|
- name: TURN_USER
|
|
- name: TURN_PASSWORD
|
|
- name: UPLOADER_URL
|
|
value: http://{{ tpl .Values.uploaderFQDN . }}
|
|
envFrom:
|
|
- configMapRef:
|
|
name: {{ .Release.Name }}-wa-con
|
|
ports:
|
|
- containerPort: 80
|
|
securityContext:
|
|
runAsUser: 0
|
|
image: thecodingmachine/workadventure-front:{{ .Chart.AppVersion }}
|
|
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:
|
|
- port: 80
|
|
name: http
|
|
selector:
|
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
|
app.kubernetes.io/component: front
|