2021-11-09 13:33:17 +00:00
|
|
|
apiVersion: apps/v1
|
|
|
|
|
kind: Deployment
|
|
|
|
|
metadata:
|
2021-11-17 14:38:49 +00:00
|
|
|
name: webrtc-be
|
2025-04-06 22:57:45 +00:00
|
|
|
namespace: webrtc-be
|
2021-11-18 08:57:16 +00:00
|
|
|
labels:
|
|
|
|
|
app: webrtc-be
|
2021-11-09 13:33:17 +00:00
|
|
|
spec:
|
|
|
|
|
selector:
|
|
|
|
|
matchLabels:
|
|
|
|
|
app: webrtc-be
|
2021-11-09 16:58:17 +00:00
|
|
|
replicas: 1
|
2021-11-09 13:33:17 +00:00
|
|
|
template:
|
|
|
|
|
metadata:
|
2025-10-05 22:43:16 +00:00
|
|
|
generateName: webrtc-be-
|
2021-11-09 13:33:17 +00:00
|
|
|
labels:
|
|
|
|
|
app: webrtc-be
|
|
|
|
|
spec:
|
|
|
|
|
hostNetwork: true
|
|
|
|
|
imagePullSecrets:
|
|
|
|
|
- name: gcr-json-key
|
|
|
|
|
containers:
|
|
|
|
|
- name: webrtc-be
|
2025-04-06 22:57:45 +00:00
|
|
|
image: gcr.io/tough-craft-276813/webrtc_be:{{ .Values.webrtc_tag }}
|
2021-11-17 14:38:49 +00:00
|
|
|
imagePullPolicy: Always
|
2025-04-06 22:57:45 +00:00
|
|
|
#resources:
|
|
|
|
|
#requests:
|
|
|
|
|
# memory: "3800Mi"
|
|
|
|
|
# cpu: "1200m"
|
|
|
|
|
#limits:
|
|
|
|
|
# memory: "3800Mi"
|
2021-11-09 14:53:54 +00:00
|
|
|
env:
|
|
|
|
|
- name: RTC_MIN_PORT
|
|
|
|
|
value: "30000"
|
|
|
|
|
- name: RTC_MAX_PORT
|
|
|
|
|
value: "32768"
|
|
|
|
|
- name: BACKEND_URL
|
2021-11-17 14:38:49 +00:00
|
|
|
value: {{ .Values.backendUrl }}
|
2021-11-18 18:26:27 +00:00
|
|
|
{{ if .Values.auth }}
|
|
|
|
|
- name: RESTRICT_AUTH
|
|
|
|
|
value: "true"
|
|
|
|
|
{{ end }}
|
2021-11-09 13:33:17 +00:00
|
|
|
ports:
|
2021-11-09 15:42:47 +00:00
|
|
|
- name: websocket-port
|
|
|
|
|
containerPort: 5001
|
2025-04-06 22:57:45 +00:00
|
|
|
livenessProbe:
|
|
|
|
|
httpGet:
|
|
|
|
|
path: /healthcheck
|
|
|
|
|
port: 5001
|
|
|
|
|
scheme: HTTP
|
|
|
|
|
initialDelaySeconds: 10
|
|
|
|
|
periodSeconds: 10
|
|
|
|
|
timeoutSeconds: 5
|
|
|
|
|
failureThreshold: 3
|
|
|
|
|
readinessProbe:
|
2025-10-05 22:43:16 +00:00
|
|
|
httpGet:
|
|
|
|
|
path: /healthcheck
|
2025-04-06 22:57:45 +00:00
|
|
|
port: 5001
|
2025-10-05 22:43:16 +00:00
|
|
|
scheme: HTTP
|
|
|
|
|
initialDelaySeconds: 10
|
2025-04-06 22:57:45 +00:00
|
|
|
periodSeconds: 10
|
|
|
|
|
timeoutSeconds: 5
|
2025-10-05 22:43:16 +00:00
|
|
|
failureThreshold: 3
|