game-stream: use official WolfManager image
This commit is contained in:
parent
0ff3342ea6
commit
3f6970aa1a
@ -26,10 +26,10 @@ 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/data && chown -R 1000:1000 /app/data"]
|
command: ["sh", "-c", "mkdir -p /app/config && chown -R 1000:1000 /app/config"]
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: wolfmanager-data
|
- name: wolfmanager-data
|
||||||
mountPath: /app/data
|
mountPath: /app/config
|
||||||
nodeSelector:
|
nodeSelector:
|
||||||
kubernetes.io/hostname: titan-24
|
kubernetes.io/hostname: titan-24
|
||||||
tolerations:
|
tolerations:
|
||||||
@ -45,6 +45,8 @@ spec:
|
|||||||
value: INFO
|
value: INFO
|
||||||
- name: WOLF_DOCKER_SOCKET
|
- name: WOLF_DOCKER_SOCKET
|
||||||
value: /var/run/docker.sock
|
value: /var/run/docker.sock
|
||||||
|
- name: WOLF_SOCKET_PATH
|
||||||
|
value: /var/run/wolf/wolf.sock
|
||||||
- name: NVIDIA_DRIVER_CAPABILITIES
|
- name: NVIDIA_DRIVER_CAPABILITIES
|
||||||
value: all
|
value: all
|
||||||
- name: NVIDIA_VISIBLE_DEVICES
|
- name: NVIDIA_VISIBLE_DEVICES
|
||||||
@ -65,6 +67,8 @@ spec:
|
|||||||
mountPath: /etc/wolf
|
mountPath: /etc/wolf
|
||||||
- name: wolf-runtime
|
- name: wolf-runtime
|
||||||
mountPath: /run/user/wolf
|
mountPath: /run/user/wolf
|
||||||
|
- name: wolf-runtime
|
||||||
|
mountPath: /var/run/wolf
|
||||||
- name: docker-socket
|
- name: docker-socket
|
||||||
mountPath: /var/run/docker.sock
|
mountPath: /var/run/docker.sock
|
||||||
- name: dev
|
- name: dev
|
||||||
@ -78,6 +82,9 @@ spec:
|
|||||||
ports:
|
ports:
|
||||||
- name: api-proxy
|
- name: api-proxy
|
||||||
containerPort: 8088
|
containerPort: 8088
|
||||||
|
env:
|
||||||
|
- name: WOLF_SOCKET_PATH
|
||||||
|
value: /var/run/wolf/wolf.sock
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
cpu: 25m
|
cpu: 25m
|
||||||
@ -87,61 +94,39 @@ spec:
|
|||||||
memory: 256Mi
|
memory: 256Mi
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: wolf-runtime
|
- name: wolf-runtime
|
||||||
mountPath: /run/user/wolf
|
mountPath: /var/run/wolf
|
||||||
- name: wolf-api-proxy
|
- name: wolf-api-proxy
|
||||||
mountPath: /opt/wolf-api-proxy
|
mountPath: /opt/wolf-api-proxy
|
||||||
readOnly: true
|
readOnly: true
|
||||||
- name: wolfmanager
|
- name: wolfmanager
|
||||||
image: ghcr.io/salty2011/wolfmanager:latest
|
image: ghcr.io/games-on-whales/wolfmanager/wolfmanager:latest
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
command: ["/bin/sh", "-ec"]
|
|
||||||
args:
|
|
||||||
- |
|
|
||||||
umask 077
|
|
||||||
mkdir -p /app/data
|
|
||||||
if [ ! -s /app/data/jwt_secret ]; then
|
|
||||||
head -c 32 /dev/urandom | od -An -tx1 | tr -d ' \n' > /app/data/jwt_secret
|
|
||||||
fi
|
|
||||||
if [ ! -s /app/data/admin_password ]; then
|
|
||||||
printf 'Wm%s1a\n' "$(head -c 18 /dev/urandom | od -An -tx1 | tr -d ' \n')" > /app/data/admin_password
|
|
||||||
fi
|
|
||||||
export Jwt__SecretKey="$(cat /app/data/jwt_secret)"
|
|
||||||
export Admin__Password="$(cat /app/data/admin_password)"
|
|
||||||
exec dotnet WolfManager.Api.dll
|
|
||||||
env:
|
env:
|
||||||
- name: ASPNETCORE_URLS
|
- name: NODE_ENV
|
||||||
value: http://+:8080
|
value: production
|
||||||
- name: ASPNETCORE_ENVIRONMENT
|
- name: NEXTAUTH_URL
|
||||||
value: Production
|
value: https://wolf.bstein.dev
|
||||||
- name: ConnectionStrings__DefaultConnection
|
- name: WOLF_SOCKET_PATH
|
||||||
value: Data Source=/app/data/wolfmanager.db
|
value: /var/run/wolf/wolf.sock
|
||||||
- name: Jobs__Storage
|
- name: WOLF_DOCKER_SOCKET
|
||||||
value: Memory
|
value: /var/run/docker.sock
|
||||||
- name: Jobs__DashboardEnabled
|
- name: HOSTNAME
|
||||||
|
value: 0.0.0.0
|
||||||
|
- name: PORT
|
||||||
|
value: "3000"
|
||||||
|
- name: SCHEDULED_TASK_ENABLED
|
||||||
value: "true"
|
value: "true"
|
||||||
- name: Wolf__UseUnixSocket
|
|
||||||
value: "true"
|
|
||||||
- name: Wolf__UnixSocketPath
|
|
||||||
value: /run/user/wolf/wolf.sock
|
|
||||||
- name: OpenTelemetry__ServiceName
|
|
||||||
value: WolfManager
|
|
||||||
- name: OpenTelemetry__ConsoleExporter
|
|
||||||
value: "false"
|
|
||||||
- name: OpenTelemetry__OtlpExporter
|
|
||||||
value: "false"
|
|
||||||
ports:
|
ports:
|
||||||
- name: wolfmanager
|
- name: wolfmanager
|
||||||
containerPort: 8080
|
containerPort: 3000
|
||||||
readinessProbe:
|
readinessProbe:
|
||||||
httpGet:
|
tcpSocket:
|
||||||
path: /health/ready
|
port: 3000
|
||||||
port: 8080
|
|
||||||
initialDelaySeconds: 10
|
initialDelaySeconds: 10
|
||||||
periodSeconds: 10
|
periodSeconds: 10
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
httpGet:
|
tcpSocket:
|
||||||
path: /health/live
|
port: 3000
|
||||||
port: 8080
|
|
||||||
initialDelaySeconds: 30
|
initialDelaySeconds: 30
|
||||||
periodSeconds: 20
|
periodSeconds: 20
|
||||||
resources:
|
resources:
|
||||||
@ -153,9 +138,11 @@ spec:
|
|||||||
memory: 1Gi
|
memory: 1Gi
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: wolf-runtime
|
- name: wolf-runtime
|
||||||
mountPath: /run/user/wolf
|
mountPath: /var/run/wolf
|
||||||
|
- name: docker-socket
|
||||||
|
mountPath: /var/run/docker.sock
|
||||||
- name: wolfmanager-data
|
- name: wolfmanager-data
|
||||||
mountPath: /app/data
|
mountPath: /app/config
|
||||||
volumes:
|
volumes:
|
||||||
- name: wolf-state
|
- name: wolf-state
|
||||||
hostPath:
|
hostPath:
|
||||||
|
|||||||
@ -13,5 +13,5 @@ spec:
|
|||||||
ports:
|
ports:
|
||||||
- name: http
|
- name: http
|
||||||
port: 8080
|
port: 8080
|
||||||
targetPort: 8080
|
targetPort: 3000
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user