Skip to content

Commit 5e0163b

Browse files
authored
Merge pull request #40 from Nold360/feat/runtimeclass
feat: add runtimeClassName support
2 parents 6a3e8b1 + b534c49 commit 5e0163b

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

charts/local-ai/Chart.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ appVersion: 1.40
33
description: A Helm chart for deploying LocalAI to a Kubernetes cluster
44
name: local-ai
55
type: application
6-
version: 3.1.0
6+
version: 3.2.0

charts/local-ai/templates/deployment.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ spec:
2929
checksum/config-prompt-templates: {{ include (print $.Template.BasePath "/configmap-prompt-templates.yaml") . | sha256sum }}
3030
{{- end }}
3131
spec:
32+
{{- with .Values.deployment.runtimeClassName }}
33+
runtimeClassName: {{ . }}
34+
{{- end }}
3235
{{- with .Values.deployment.imagePullSecrets }}
3336
imagePullSecrets:
3437
{{- toYaml . | nindent 8 }}

charts/local-ai/values.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ deployment:
1717
pullPolicy: IfNotPresent
1818
imagePullSecrets: []
1919
# - name: secret-names
20+
21+
## Needed for GPU Nodes
22+
#runtimeClassName: gpu
2023

2124
resources:
2225
{}

0 commit comments

Comments
 (0)