apiVersion: apps/v1 kind: Deployment metadata: name: webrtc-be namespace: webrtc-be labels: app: webrtc-be spec: selector: matchLabels: app: webrtc-be replicas: 1 template: metadata: labels: app: webrtc-be spec: hostNetwork: true imagePullSecrets: - name: gcr-json-key containers: - name: webrtc-be image: gcr.io/tough-craft-276813/webrtc_be:{{ .Values.webrtc_tag }} imagePullPolicy: Always #resources: #requests: # memory: "3800Mi" # cpu: "1200m" #limits: # memory: "3800Mi" env: - name: RTC_MIN_PORT value: "30000" - name: RTC_MAX_PORT value: "32768" - name: BACKEND_URL value: {{ .Values.backendUrl }} {{ if .Values.auth }} - name: RESTRICT_AUTH value: "true" {{ end }} ports: - name: websocket-port containerPort: 5001 livenessProbe: httpGet: path: /healthcheck port: 5001 scheme: HTTP initialDelaySeconds: 10 periodSeconds: 10 timeoutSeconds: 5 failureThreshold: 3 readinessProbe: tcpSocket: port: 5001 initialDelaySeconds: 5 periodSeconds: 10 timeoutSeconds: 5 failureThreshold: 3