From 574faa02792ac6d3284f1b75cfedcbe233d119a2 Mon Sep 17 00:00:00 2001 From: Will Anderson Date: Sun, 29 Mar 2026 21:22:03 -0500 Subject: [PATCH] fix(mudcraft): set voice_host so clients connect to correct UDP endpoint Simple Voice Chat was advertising a blank voice_host, causing clients to try connecting to the pod's internal IP over UDP. Explicitly set voice_host=mudcraft.nook.family:24454 via ConfigMap + initContainer. --- .../k8s/mudcraft/configmap-voicechat.yaml | 25 +++++++++++++++++++ servers/legion/k8s/mudcraft/statefulset.yaml | 9 ++++++- 2 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 servers/legion/k8s/mudcraft/configmap-voicechat.yaml diff --git a/servers/legion/k8s/mudcraft/configmap-voicechat.yaml b/servers/legion/k8s/mudcraft/configmap-voicechat.yaml new file mode 100644 index 0000000..4a7dd80 --- /dev/null +++ b/servers/legion/k8s/mudcraft/configmap-voicechat.yaml @@ -0,0 +1,25 @@ +--- +apiVersion: v1 +kind: ConfigMap +metadata: + name: mudcraft-voicechat + namespace: mudcraft +data: + voicechat-server.properties: | + port=24454 + bind_address= + max_voice_distance=48.0 + whisper_distance=24.0 + codec=VOIP + mtu_size=1024 + tcp_rate_limit=16 + keep_alive=1000 + enable_groups=true + voice_host=mudcraft.nook.family:24454 + allow_recording=true + spectator_interaction=false + spectator_player_possession=false + force_voice_chat=false + login_timeout=10000 + broadcast_range=-1.0 + allow_pings=true diff --git a/servers/legion/k8s/mudcraft/statefulset.yaml b/servers/legion/k8s/mudcraft/statefulset.yaml index a8f4f72..35d6ccf 100644 --- a/servers/legion/k8s/mudcraft/statefulset.yaml +++ b/servers/legion/k8s/mudcraft/statefulset.yaml @@ -17,7 +17,7 @@ spec: labels: app: mudcraft annotations: - kubectl.kubernetes.io/restartedAt: "2026-03-30T02:45:00Z" + kubectl.kubernetes.io/restartedAt: "2026-03-30T03:00:00Z" spec: terminationGracePeriodSeconds: 120 securityContext: @@ -48,6 +48,8 @@ spec: sed "s|\${LP_PASSWORD}|${LP_PASSWORD}|g" /luckperms-config/config.yml > /target/LuckPerms/config.yml mkdir -p /target/PurpurExtras cp /purpurextras-config/config.yml /target/PurpurExtras/config.yml + mkdir -p /target/voicechat + cp /voicechat-config/voicechat-server.properties /target/voicechat/voicechat-server.properties echo 'Plugins installed' volumeMounts: - name: plugins @@ -56,6 +58,8 @@ spec: mountPath: /luckperms-config - name: purpurextras-config mountPath: /purpurextras-config + - name: voicechat-config + mountPath: /voicechat-config containers: - name: mudcraft image: itzg/minecraft-server:java21 @@ -139,3 +143,6 @@ spec: - name: luckperms-config configMap: name: mudcraft-luckperms + - name: voicechat-config + configMap: + name: mudcraft-voicechat