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 f767303
Show file tree
Hide file tree
Showing 4 changed files with 65 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
37 changes: 37 additions & 0 deletions apps/faf-ws-bridge/templates/deployment.yaml
@@ -0,0 +1,37 @@
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
#- image: alpine:3
command:
- sh
- "-c"
- "tail -f /dev/null"
#args:
# - "ws_to_tcp"
# - "-vvv"
# - "--proxy"
# - "faf-ws-bridge: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 f767303

Please sign in to comment.