From 9cf4cf40dadb4386a807d46d4833ffbba61de4c5 Mon Sep 17 00:00:00 2001 From: bananu7 Date: Mon, 3 Oct 2022 16:31:59 +0200 Subject: [PATCH] Enabled default list of ice servers --- packages/server/index.ts | 4 +-- packages/server/server.yaml | 49 +++++++++++++++++++++++++++++++++++++ 2 files changed, 51 insertions(+), 2 deletions(-) create mode 100644 packages/server/server.yaml diff --git a/packages/server/index.ts b/packages/server/index.ts index e5af820..d26da25 100644 --- a/packages/server/index.ts +++ b/packages/server/index.ts @@ -1,4 +1,4 @@ -import geckos, { Data } from '@geckos.io/server' +import geckos, { Data, iceServers } from '@geckos.io/server' import http from 'http' import express from 'express' import cors from 'cors' @@ -28,7 +28,7 @@ app.use(cors()) app.use(bodyParser.json()) app.use(bodyParser.urlencoded({ extended: true })) const server = http.createServer(app) -const io = geckos() +const io = geckos({ iceServers }) const matches : Match[] = []; diff --git a/packages/server/server.yaml b/packages/server/server.yaml new file mode 100644 index 0000000..a5e6738 --- /dev/null +++ b/packages/server/server.yaml @@ -0,0 +1,49 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + namespace: rts + name: server +spec: + progressDeadlineSeconds: 600 + replicas: 1 + revisionHistoryLimit: 10 + selector: + matchLabels: + app: server + strategy: + rollingUpdate: + maxSurge: 0 + maxUnavailable: 100% + type: RollingUpdate + template: + metadata: + creationTimestamp: null + labels: + app: server + io.portainer.kubernetes.application.name: server + spec: + hostNetwork: true + containers: + - image: bananu7/rts:server-90487ee + imagePullPolicy: IfNotPresent + name: server + ports: + - name: http + containerPort: 9208 + hostPort: 9208 + protocol: TCP + resources: + limits: + cpu: 500m + memory: 256M + requests: + cpu: 500m + memory: 256M + terminationMessagePath: /dev/termination-log + terminationMessagePolicy: File + dnsPolicy: ClusterFirst + restartPolicy: Always + schedulerName: default-scheduler + securityContext: {} + terminationGracePeriodSeconds: 30 +