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
|
appVersion: 1.0.0
|
||||||
description: Streams graphic applications/games (retroarch, firefox, steam) runing on Kubernetes
|
description: Streams graphic applications/games (retroarch, firefox, steam) runing on Kubernetes
|
||||||
name: games-on-whales
|
name: games-on-whales
|
||||||
version: 1.3.0
|
version: 1.4.0
|
||||||
kubeVersion: ">=1.19.0-0"
|
kubeVersion: ">=1.19.0-0"
|
||||||
keywords:
|
keywords:
|
||||||
- games-on-whales
|
- games-on-whales
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# games-on-whales
|
# 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
|
Streams graphic applications/games (retroarch, firefox, steam) runing on Kubernetes
|
||||||
|
|
||||||
@ -85,14 +85,7 @@ graphic_resources:
|
|||||||
#### Nvidia
|
#### Nvidia
|
||||||
|
|
||||||
If you use the Nvidia propietary device driver then you will need the
|
If you use the Nvidia propietary device driver then you will need the
|
||||||
[Nvidia device plugin](https://github.com/NVIDIA/k8s-device-plugin)
|
[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
|
|
||||||
```
|
|
||||||
|
|
||||||
#### Proxmox
|
#### 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).
|
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]
|
### [1.3.0]
|
||||||
|
|
||||||
#### Added
|
#### 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).
|
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]
|
### [1.3.0]
|
||||||
|
|
||||||
#### Added
|
#### Added
|
||||||
|
@ -24,14 +24,7 @@ graphic_resources:
|
|||||||
#### Nvidia
|
#### Nvidia
|
||||||
|
|
||||||
If you use the Nvidia propietary device driver then you will need the
|
If you use the Nvidia propietary device driver then you will need the
|
||||||
[Nvidia device plugin](https://github.com/NVIDIA/k8s-device-plugin)
|
[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
|
|
||||||
```
|
|
||||||
|
|
||||||
#### Proxmox
|
#### Proxmox
|
||||||
|
|
||||||
|
@ -26,6 +26,8 @@ env:
|
|||||||
SUNSHINE_USER: {{ .Values.sunshine.user }}
|
SUNSHINE_USER: {{ .Values.sunshine.user }}
|
||||||
GOW_REQUIRED_DEVICES: /dev/uinput /dev/input/event* /dev/dri/*
|
GOW_REQUIRED_DEVICES: /dev/uinput /dev/input/event* /dev/dri/*
|
||||||
XDG_RUNTIME_DIR: /tmp/.X11-unix
|
XDG_RUNTIME_DIR: /tmp/.X11-unix
|
||||||
|
NVIDIA_DRIVER_CAPABILITIES: utility,video,graphics,display
|
||||||
|
NVIDIA_VISIBLE_DEVICES: all
|
||||||
{{- if .Values.sunshine.env }}
|
{{- if .Values.sunshine.env }}
|
||||||
{{ .Values.sunshine.env | toYaml | nindent 2 }}
|
{{ .Values.sunshine.env | toYaml | nindent 2 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
@ -64,6 +66,10 @@ additionalContainers:
|
|||||||
value: {{ .Values.xorg.refreshrate | quote}}
|
value: {{ .Values.xorg.refreshrate | quote}}
|
||||||
- name: RESOLUTION
|
- name: RESOLUTION
|
||||||
value: {{ .Values.xorg.resolution | quote }}
|
value: {{ .Values.xorg.resolution | quote }}
|
||||||
|
- name: NVIDIA_DRIVER_CAPABILITIES
|
||||||
|
value: all
|
||||||
|
- name: NVIDIA_VISIBLE_DEVICES
|
||||||
|
value: all
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: dev-input
|
- name: dev-input
|
||||||
mountPath: /dev/input
|
mountPath: /dev/input
|
||||||
@ -105,6 +111,10 @@ additionalContainers:
|
|||||||
value: "/tmp/pulse/pulse-socket"
|
value: "/tmp/pulse/pulse-socket"
|
||||||
- name: GOW_REQUIRED_DEVICES
|
- name: GOW_REQUIRED_DEVICES
|
||||||
value: /dev/uinput /dev/input/event* /dev/dri/* /dev/snd/*
|
value: /dev/uinput /dev/input/event* /dev/dri/* /dev/snd/*
|
||||||
|
- name: NVIDIA_DRIVER_CAPABILITIES
|
||||||
|
value: all
|
||||||
|
- name: NVIDIA_VISIBLE_DEVICES
|
||||||
|
value: all
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: audio-socket
|
- name: audio-socket
|
||||||
mountPath: /tmp/pulse
|
mountPath: /tmp/pulse
|
||||||
@ -147,6 +157,10 @@ additionalContainers:
|
|||||||
value: {{ .Values.steam.protonLog | quote }}
|
value: {{ .Values.steam.protonLog | quote }}
|
||||||
- name: PULSE_SERVER
|
- name: PULSE_SERVER
|
||||||
value: "/tmp/pulse/pulse-socket"
|
value: "/tmp/pulse/pulse-socket"
|
||||||
|
- name: NVIDIA_DRIVER_CAPABILITIES
|
||||||
|
value: all
|
||||||
|
- name: NVIDIA_VISIBLE_DEVICES
|
||||||
|
value: all
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: audio-socket
|
- name: audio-socket
|
||||||
mountPath: /tmp/pulse
|
mountPath: /tmp/pulse
|
||||||
@ -180,6 +194,10 @@ additionalContainers:
|
|||||||
value: {{ .Values.firefox.logLevel | quote }}
|
value: {{ .Values.firefox.logLevel | quote }}
|
||||||
- name: PULSE_SERVER
|
- name: PULSE_SERVER
|
||||||
value: "/tmp/pulse/pulse-socket"
|
value: "/tmp/pulse/pulse-socket"
|
||||||
|
- name: NVIDIA_DRIVER_CAPABILITIES
|
||||||
|
value: all
|
||||||
|
- name: NVIDIA_VISIBLE_DEVICES
|
||||||
|
value: all
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: audio-socket
|
- name: audio-socket
|
||||||
mountPath: /tmp/pulse
|
mountPath: /tmp/pulse
|
||||||
|
Loading…
Reference in New Issue
Block a user