Add Simple Voice Chat UDP routing for mudcraft
- Expose UDP 24454 on mudcraft pod and Service (Simple Voice Chat) - Add Traefik voicechat UDP entrypoint on port 24454 - Add IngressRouteUDP to route external UDP 24454 → mudcraft service
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
---
|
||||
# Traefik UDP route — exposes mudcraft.nook.family:24454 → mudcraft service (Simple Voice Chat)
|
||||
apiVersion: traefik.io/v1alpha1
|
||||
kind: IngressRouteUDP
|
||||
metadata:
|
||||
name: mudcraft-voicechat
|
||||
namespace: mudcraft
|
||||
spec:
|
||||
entryPoints:
|
||||
- voicechat
|
||||
routes:
|
||||
- services:
|
||||
- name: mudcraft
|
||||
port: 24454
|
||||
@@ -13,6 +13,10 @@ spec:
|
||||
port: 25565
|
||||
targetPort: 25565
|
||||
protocol: TCP
|
||||
- name: voicechat
|
||||
port: 24454
|
||||
targetPort: 24454
|
||||
protocol: UDP
|
||||
type: ClusterIP
|
||||
---
|
||||
# RCON — internal only, for server management
|
||||
|
||||
@@ -40,6 +40,9 @@ spec:
|
||||
- name: rcon
|
||||
containerPort: 25575
|
||||
protocol: TCP
|
||||
- name: voicechat
|
||||
containerPort: 24454
|
||||
protocol: UDP
|
||||
envFrom:
|
||||
- configMapRef:
|
||||
name: mudcraft-config
|
||||
|
||||
@@ -25,6 +25,12 @@ resource "kubernetes_manifest" "traefik_config" {
|
||||
default: true
|
||||
exposedPort: 25565
|
||||
protocol: TCP
|
||||
voicechat:
|
||||
port: 24454
|
||||
expose:
|
||||
default: true
|
||||
exposedPort: 24454
|
||||
protocol: UDP
|
||||
YAML
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user