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: initContainers:
- name: wolfmanager-data-permissions - name: wolfmanager-data-permissions
image: busybox:1.36 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: volumeMounts:
- name: wolfmanager-data - name: wolfmanager-data
mountPath: /app/config mountPath: /app/config
- name: wolf-runtime
mountPath: /wolf-runtime
- name: wolf-socket
mountPath: /wolf-socket
nodeSelector: nodeSelector:
kubernetes.io/hostname: titan-24 kubernetes.io/hostname: titan-24
tolerations: tolerations:
@ -46,6 +56,8 @@ spec:
value: /var/run/docker.sock value: /var/run/docker.sock
- name: WOLF_SOCKET_PATH - name: WOLF_SOCKET_PATH
value: /var/run/wolf/wolf.sock value: /var/run/wolf/wolf.sock
- name: XDG_RUNTIME_DIR
value: /var/lib/wolf/runtime
- name: NVIDIA_DRIVER_CAPABILITIES - name: NVIDIA_DRIVER_CAPABILITIES
value: all value: all
- name: NVIDIA_VISIBLE_DEVICES - name: NVIDIA_VISIBLE_DEVICES
@ -67,8 +79,8 @@ spec:
- name: wolf-state - name: wolf-state
mountPath: /etc/wolf mountPath: /etc/wolf
- name: wolf-runtime - name: wolf-runtime
mountPath: /run/user/wolf mountPath: /var/lib/wolf/runtime
- name: wolf-runtime - name: wolf-socket
mountPath: /var/run/wolf mountPath: /var/run/wolf
- name: docker-socket - name: docker-socket
mountPath: /var/run/docker.sock mountPath: /var/run/docker.sock
@ -96,7 +108,7 @@ spec:
cpu: 250m cpu: 250m
memory: 256Mi memory: 256Mi
volumeMounts: volumeMounts:
- name: wolf-runtime - name: wolf-socket
mountPath: /var/run/wolf mountPath: /var/run/wolf
- name: wolf-api-proxy - name: wolf-api-proxy
mountPath: /opt/wolf-api-proxy mountPath: /opt/wolf-api-proxy
@ -140,7 +152,7 @@ spec:
cpu: "1" cpu: "1"
memory: 1Gi memory: 1Gi
volumeMounts: volumeMounts:
- name: wolf-runtime - name: wolf-socket
mountPath: /var/run/wolf mountPath: /var/run/wolf
- name: docker-socket - name: docker-socket
mountPath: /var/run/docker.sock mountPath: /var/run/docker.sock
@ -152,7 +164,13 @@ spec:
path: /etc/wolf path: /etc/wolf
type: DirectoryOrCreate type: DirectoryOrCreate
- name: wolf-runtime - 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 - name: wolf-api-proxy
configMap: configMap:
name: wolf-api-proxy name: wolf-api-proxy