فهرست منبع

NAS-119626 / 23.10 / Updated apps for nvidia GPU support (#950)

* Updated apps for nvidia GPU support

* add a placeholder for linting

* Add another layer of check
Stavros Kois 2 سال پیش
والد
کامیت
d8620d45dc

+ 1 - 1
library/ix-dev/charts/emby/Chart.yaml

@@ -3,7 +3,7 @@ description: Emby Server
 annotations:
   title: Emby Server
 type: application
-version: 1.0.17
+version: 1.0.18
 apiVersion: v2
 appVersion: '4.7.11.0'
 kubeVersion: '>=1.16.0-0'

+ 1 - 0
library/ix-dev/charts/emby/ci/test-values.yaml

@@ -13,3 +13,4 @@ extraAppVolumeMounts:
 gpuConfiguration: {}
 hostNetwork: false
 updateStrategy: Recreate
+global: {}

+ 7 - 0
library/ix-dev/charts/emby/templates/deployment.yaml

@@ -8,6 +8,13 @@ spec: {{ include "common.deployment.common_spec" . | nindent 2 }}
       dnsPolicy: ClusterFirstWithHostNet
     {{- end }}
       hostname: {{ template "common.names.fullname" . }}
+      {{- if hasKey .Values "global" }}
+        {{- if hasKey .Values.global "ixChartContext" }}
+          {{- if .Values.global.ixChartContext.addNvidiaRuntimeClass }}
+      runtimeClassName: {{ .Values.global.ixChartContext.nvidiaRuntimeClassName }}
+          {{- end }}
+        {{- end }}
+      {{- end }}
       containers:
         - name: {{ .Chart.Name }}
           {{ include "common.resources.limitation" . | nindent 10 }}

+ 1 - 1
library/ix-dev/charts/ix-chart/Chart.yaml

@@ -3,7 +3,7 @@ description: A Helm chart for deploying simple workloads Kubernetes
 annotations:
   title: ix-chart
 type: application
-version: 2304.0.0
+version: 2304.0.1
 apiVersion: v2
 appVersion: v1
 kubeVersion: ">=1.16.0-0"

+ 2 - 0
library/ix-dev/charts/ix-chart/ci/test-values.yaml

@@ -42,5 +42,7 @@ securityContext:
   capabilities: []
 tty: true
 stdin: true
+
 # CI Enabled
 ci: true
+global: {}

+ 7 - 0
library/ix-dev/charts/ix-chart/templates/_workload.tpl

@@ -52,6 +52,13 @@ Pod specification
 {{- define "podSepc" }}
 restartPolicy: {{ template "restartPolicy" . }}
 hostNetwork: {{ template "hostNetworkingConfiguration" . }}
+{{- if hasKey .Values "global" }}
+  {{- if hasKey .Values.global "ixChartContext" }}
+    {{- if .Values.global.ixChartContext.addNvidiaRuntimeClass }}
+runtimeClassName: {{ .Values.global.ixChartContext.nvidiaRuntimeClassName }}
+    {{- end }}
+  {{- end }}
+{{- end }}
 containers:
 - name: {{ .Chart.Name }}
   {{ include "common.resources.limitation" . | nindent 2 }}

+ 1 - 0
library/ix-dev/charts/ix-chart/values.yaml

@@ -0,0 +1 @@
+placeholder: {}

+ 1 - 1
library/ix-dev/charts/photoprism/Chart.yaml

@@ -3,7 +3,7 @@ description: AI-powered app for browsing, organizing & sharing your photo collec
 annotations:
   title: PhotoPrism
 type: application
-version: 1.0.13
+version: 1.0.14
 apiVersion: v2
 appVersion: '221118'
 kubeVersion: '>=1.16.0-0'

+ 1 - 0
library/ix-dev/charts/photoprism/ci/test-values.yaml

@@ -18,3 +18,4 @@ ownerUID: 568
 password: admin123
 public: false
 web_port: 32000
+global: {}

+ 7 - 0
library/ix-dev/charts/photoprism/templates/deployment.yaml

@@ -28,6 +28,13 @@ spec:
       annotations: {{ include "common.annotations" . | nindent 8 }}
     spec:
       hostNetwork: false
+      {{- if hasKey .Values "global" }}
+        {{- if hasKey .Values.global "ixChartContext" }}
+          {{- if .Values.global.ixChartContext.addNvidiaRuntimeClass }}
+      runtimeClassName: {{ .Values.global.ixChartContext.nvidiaRuntimeClassName }}
+          {{- end }}
+        {{- end }}
+      {{- end }}
       containers:
         - name: {{ .Chart.Name }}
           {{ include "common.resources.limitation" . | nindent 10 }}

+ 1 - 1
library/ix-dev/charts/plex/Chart.yaml

@@ -3,7 +3,7 @@ description: Plex Media Server
 annotations:
   title: Plex
 type: application
-version: 1.7.36
+version: 1.7.37
 apiVersion: v2
 appVersion: 1.32.0.6918
 kubeVersion: '>=1.16.0-0'

+ 1 - 0
library/ix-dev/charts/plex/ci/test-values.yaml

@@ -30,3 +30,4 @@ plexServiceTCP:
   port: 32400
 timezone: Etc/UTC
 updateStrategy: Recreate
+global: {}

+ 7 - 0
library/ix-dev/charts/plex/templates/deployment.yaml

@@ -8,6 +8,13 @@ spec: {{ include "common.deployment.common_spec" . | nindent 2 }}
       dnsPolicy: ClusterFirstWithHostNet
     {{- end }}
       hostname: {{ template "common.names.fullname" . }}
+      {{- if hasKey .Values "global" }}
+        {{- if hasKey .Values.global "ixChartContext" }}
+          {{- if .Values.global.ixChartContext.addNvidiaRuntimeClass }}
+      runtimeClassName: {{ .Values.global.ixChartContext.nvidiaRuntimeClassName }}
+          {{- end }}
+        {{- end }}
+      {{- end }}
       containers:
         - name: {{ .Chart.Name }}
           {{ include "common.resources.limitation" . | nindent 10 }}