mirror of
https://github.com/k8s-at-home/charts.git
synced 2025-02-03 07:49:03 +00:00
[games-on-whales] Add env variables for Nvidia (#1154)
This commit is contained in:
parent
440f518efc
commit
62140f8d2c
@ -2,7 +2,7 @@ apiVersion: v2
|
||||
appVersion: 1.0.0
|
||||
description: Streams graphic applications/games (retroarch, firefox, steam) runing on Kubernetes
|
||||
name: games-on-whales
|
||||
version: 1.3.0
|
||||
version: 1.4.0
|
||||
kubeVersion: ">=1.19.0-0"
|
||||
keywords:
|
||||
- games-on-whales
|
||||
|
@ -1,6 +1,6 @@
|
||||
# games-on-whales
|
||||
|
||||
![Version: 1.3.0](https://img.shields.io/badge/Version-1.3.0-informational?style=flat-square) ![AppVersion: 1.0.0](https://img.shields.io/badge/AppVersion-1.0.0-informational?style=flat-square)
|
||||
![Version: 1.4.0](https://img.shields.io/badge/Version-1.4.0-informational?style=flat-square) ![AppVersion: 1.0.0](https://img.shields.io/badge/AppVersion-1.0.0-informational?style=flat-square)
|
||||
|
||||
Streams graphic applications/games (retroarch, firefox, steam) runing on Kubernetes
|
||||
|
||||
@ -85,14 +85,7 @@ graphic_resources:
|
||||
#### Nvidia
|
||||
|
||||
If you use the Nvidia propietary device driver then you will need the
|
||||
[Nvidia device plugin](https://github.com/NVIDIA/k8s-device-plugin)
|
||||
and set `graphic_resources` value to specify the resource limits.
|
||||
Example:
|
||||
|
||||
```
|
||||
graphic_resources:
|
||||
nvidia.com/gpu: 1 # requesting 1 nvidia GPU
|
||||
```
|
||||
[Nvidia device plugin](https://github.com/NVIDIA/k8s-device-plugin).
|
||||
|
||||
#### Proxmox
|
||||
|
||||
@ -156,6 +149,12 @@ All notable changes to this application Helm chart will be documented in this fi
|
||||
|
||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||
|
||||
### [1.4.0]
|
||||
|
||||
#### Added
|
||||
|
||||
- add required env variables for nvidia runtime
|
||||
|
||||
### [1.3.0]
|
||||
|
||||
#### Added
|
||||
|
@ -9,6 +9,12 @@ All notable changes to this application Helm chart will be documented in this fi
|
||||
|
||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||
|
||||
### [1.4.0]
|
||||
|
||||
#### Added
|
||||
|
||||
- add required env variables for nvidia runtime
|
||||
|
||||
### [1.3.0]
|
||||
|
||||
#### Added
|
||||
|
@ -24,14 +24,7 @@ graphic_resources:
|
||||
#### Nvidia
|
||||
|
||||
If you use the Nvidia propietary device driver then you will need the
|
||||
[Nvidia device plugin](https://github.com/NVIDIA/k8s-device-plugin)
|
||||
and set `graphic_resources` value to specify the resource limits.
|
||||
Example:
|
||||
|
||||
```
|
||||
graphic_resources:
|
||||
nvidia.com/gpu: 1 # requesting 1 nvidia GPU
|
||||
```
|
||||
[Nvidia device plugin](https://github.com/NVIDIA/k8s-device-plugin).
|
||||
|
||||
#### Proxmox
|
||||
|
||||
|
@ -26,6 +26,8 @@ env:
|
||||
SUNSHINE_USER: {{ .Values.sunshine.user }}
|
||||
GOW_REQUIRED_DEVICES: /dev/uinput /dev/input/event* /dev/dri/*
|
||||
XDG_RUNTIME_DIR: /tmp/.X11-unix
|
||||
NVIDIA_DRIVER_CAPABILITIES: utility,video,graphics,display
|
||||
NVIDIA_VISIBLE_DEVICES: all
|
||||
{{- if .Values.sunshine.env }}
|
||||
{{ .Values.sunshine.env | toYaml | nindent 2 }}
|
||||
{{- end }}
|
||||
@ -64,6 +66,10 @@ additionalContainers:
|
||||
value: {{ .Values.xorg.refreshrate | quote}}
|
||||
- name: RESOLUTION
|
||||
value: {{ .Values.xorg.resolution | quote }}
|
||||
- name: NVIDIA_DRIVER_CAPABILITIES
|
||||
value: all
|
||||
- name: NVIDIA_VISIBLE_DEVICES
|
||||
value: all
|
||||
volumeMounts:
|
||||
- name: dev-input
|
||||
mountPath: /dev/input
|
||||
@ -105,6 +111,10 @@ additionalContainers:
|
||||
value: "/tmp/pulse/pulse-socket"
|
||||
- name: GOW_REQUIRED_DEVICES
|
||||
value: /dev/uinput /dev/input/event* /dev/dri/* /dev/snd/*
|
||||
- name: NVIDIA_DRIVER_CAPABILITIES
|
||||
value: all
|
||||
- name: NVIDIA_VISIBLE_DEVICES
|
||||
value: all
|
||||
volumeMounts:
|
||||
- name: audio-socket
|
||||
mountPath: /tmp/pulse
|
||||
@ -147,6 +157,10 @@ additionalContainers:
|
||||
value: {{ .Values.steam.protonLog | quote }}
|
||||
- name: PULSE_SERVER
|
||||
value: "/tmp/pulse/pulse-socket"
|
||||
- name: NVIDIA_DRIVER_CAPABILITIES
|
||||
value: all
|
||||
- name: NVIDIA_VISIBLE_DEVICES
|
||||
value: all
|
||||
volumeMounts:
|
||||
- name: audio-socket
|
||||
mountPath: /tmp/pulse
|
||||
@ -180,6 +194,10 @@ additionalContainers:
|
||||
value: {{ .Values.firefox.logLevel | quote }}
|
||||
- name: PULSE_SERVER
|
||||
value: "/tmp/pulse/pulse-socket"
|
||||
- name: NVIDIA_DRIVER_CAPABILITIES
|
||||
value: all
|
||||
- name: NVIDIA_VISIBLE_DEVICES
|
||||
value: all
|
||||
volumeMounts:
|
||||
- name: audio-socket
|
||||
mountPath: /tmp/pulse
|
||||
|
Loading…
Reference in New Issue
Block a user