Skip to content

Commit

Permalink
Add faf-ws-bridge
Browse files Browse the repository at this point in the history
  • Loading branch information
Brutus5000 committed May 5, 2024
1 parent 948880e commit 9671fff
Show file tree
Hide file tree
Showing 4 changed files with 60 additions and 0 deletions.
3 changes: 3 additions & 0 deletions apps/faf-ws-bridge/Chart.yaml
@@ -0,0 +1,3 @@
apiVersion: v2
name: faf-ws-bridge
version: 1.0.0
32 changes: 32 additions & 0 deletions apps/faf-ws-bridge/templates/deployment.yaml
@@ -0,0 +1,32 @@
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: faf-ws-bridge
name: faf-ws-bridge
spec:
replicas: 1
revisionHistoryLimit: 10
selector:
matchLabels:
app: faf-ws-bridge
template:
metadata:
labels:
app: faf-ws-bridge
spec:
containers:
- image: faforever/ws_bridge_rs:0.1.4
args:
- "ws_to_tcp"
- "-vvv"
- "--proxy"
- "0.0.0.0:8003"
- "--proxy-header-name"
- "CF-Connecting-IP"
- "faf-lobby-server:8003"
imagePullPolicy: Always
name: faf-ws-bridge
ports:
- containerPort: 8003
restartPolicy: Always
13 changes: 13 additions & 0 deletions apps/faf-ws-bridge/templates/ingress.yaml
@@ -0,0 +1,13 @@
apiVersion: traefik.io/v1alpha1
kind: IngressRoute
metadata:
name: faf-ws-bridge
spec:
entryPoints:
- websecure
routes:
- match: Host(`ws.{{.Values.baseDomain}}`)`)
kind: Rule
services:
- name: faf-ws-bridge
port: 8003
12 changes: 12 additions & 0 deletions apps/faf-ws-bridge/templates/service.yaml
@@ -0,0 +1,12 @@
apiVersion: v1
kind: Service
metadata:
name: faf-ws-bridge
labels:
app: faf-ws-bridge
spec:
selector:
app: faf-ws-bridge
ports:
- port: 8003
targetPort: 8003

0 comments on commit 9671fff

Please sign in to comment.