From 1fe125b8b31539afb5ed85e706d3cdf65e5f510b Mon Sep 17 00:00:00 2001 From: jenkins Date: Fri, 22 May 2026 05:37:52 -0300 Subject: [PATCH] game-stream(wolf): expose runtime sockets to app containers --- services/game-stream/wolf-statefulset.yaml | 30 +++++++++++++++++----- 1 file changed, 24 insertions(+), 6 deletions(-) diff --git a/services/game-stream/wolf-statefulset.yaml b/services/game-stream/wolf-statefulset.yaml index b4822f93..91fe1283 100644 --- a/services/game-stream/wolf-statefulset.yaml +++ b/services/game-stream/wolf-statefulset.yaml @@ -25,10 +25,20 @@ spec: initContainers: - name: wolfmanager-data-permissions image: busybox:1.36 - command: ["sh", "-c", "mkdir -p /app/config && chown -R 1000:1000 /app/config"] + command: + - sh + - -c + - | + mkdir -p /app/config /wolf-runtime /wolf-socket + chown -R 1000:1000 /app/config + chmod 0777 /wolf-runtime /wolf-socket volumeMounts: - name: wolfmanager-data mountPath: /app/config + - name: wolf-runtime + mountPath: /wolf-runtime + - name: wolf-socket + mountPath: /wolf-socket nodeSelector: kubernetes.io/hostname: titan-24 tolerations: @@ -46,6 +56,8 @@ spec: value: /var/run/docker.sock - name: WOLF_SOCKET_PATH value: /var/run/wolf/wolf.sock + - name: XDG_RUNTIME_DIR + value: /var/lib/wolf/runtime - name: NVIDIA_DRIVER_CAPABILITIES value: all - name: NVIDIA_VISIBLE_DEVICES @@ -67,8 +79,8 @@ spec: - name: wolf-state mountPath: /etc/wolf - name: wolf-runtime - mountPath: /run/user/wolf - - name: wolf-runtime + mountPath: /var/lib/wolf/runtime + - name: wolf-socket mountPath: /var/run/wolf - name: docker-socket mountPath: /var/run/docker.sock @@ -96,7 +108,7 @@ spec: cpu: 250m memory: 256Mi volumeMounts: - - name: wolf-runtime + - name: wolf-socket mountPath: /var/run/wolf - name: wolf-api-proxy mountPath: /opt/wolf-api-proxy @@ -140,7 +152,7 @@ spec: cpu: "1" memory: 1Gi volumeMounts: - - name: wolf-runtime + - name: wolf-socket mountPath: /var/run/wolf - name: docker-socket mountPath: /var/run/docker.sock @@ -152,7 +164,13 @@ spec: path: /etc/wolf type: DirectoryOrCreate - name: wolf-runtime - emptyDir: {} + hostPath: + path: /var/lib/wolf/runtime + type: DirectoryOrCreate + - name: wolf-socket + hostPath: + path: /var/run/wolf + type: DirectoryOrCreate - name: wolf-api-proxy configMap: name: wolf-api-proxy