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.
This commit is contained in:
@@ -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
|
||||||
@@ -17,7 +17,7 @@ spec:
|
|||||||
labels:
|
labels:
|
||||||
app: mudcraft
|
app: mudcraft
|
||||||
annotations:
|
annotations:
|
||||||
kubectl.kubernetes.io/restartedAt: "2026-03-30T02:45:00Z"
|
kubectl.kubernetes.io/restartedAt: "2026-03-30T03:00:00Z"
|
||||||
spec:
|
spec:
|
||||||
terminationGracePeriodSeconds: 120
|
terminationGracePeriodSeconds: 120
|
||||||
securityContext:
|
securityContext:
|
||||||
@@ -48,6 +48,8 @@ spec:
|
|||||||
sed "s|\${LP_PASSWORD}|${LP_PASSWORD}|g" /luckperms-config/config.yml > /target/LuckPerms/config.yml
|
sed "s|\${LP_PASSWORD}|${LP_PASSWORD}|g" /luckperms-config/config.yml > /target/LuckPerms/config.yml
|
||||||
mkdir -p /target/PurpurExtras
|
mkdir -p /target/PurpurExtras
|
||||||
cp /purpurextras-config/config.yml /target/PurpurExtras/config.yml
|
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'
|
echo 'Plugins installed'
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: plugins
|
- name: plugins
|
||||||
@@ -56,6 +58,8 @@ spec:
|
|||||||
mountPath: /luckperms-config
|
mountPath: /luckperms-config
|
||||||
- name: purpurextras-config
|
- name: purpurextras-config
|
||||||
mountPath: /purpurextras-config
|
mountPath: /purpurextras-config
|
||||||
|
- name: voicechat-config
|
||||||
|
mountPath: /voicechat-config
|
||||||
containers:
|
containers:
|
||||||
- name: mudcraft
|
- name: mudcraft
|
||||||
image: itzg/minecraft-server:java21
|
image: itzg/minecraft-server:java21
|
||||||
@@ -139,3 +143,6 @@ spec:
|
|||||||
- name: luckperms-config
|
- name: luckperms-config
|
||||||
configMap:
|
configMap:
|
||||||
name: mudcraft-luckperms
|
name: mudcraft-luckperms
|
||||||
|
- name: voicechat-config
|
||||||
|
configMap:
|
||||||
|
name: mudcraft-voicechat
|
||||||
|
|||||||
Reference in New Issue
Block a user