game-stream(wolf): expose runtime sockets to app containers

This commit is contained in:
jenkins 2026-05-22 05:37:52 -03:00
parent 361a4decb3
commit 1fe125b8b3

View File

@ -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