Skip to content

Commit

Permalink
feat: add runtimeClassName support
Browse files Browse the repository at this point in the history
  • Loading branch information
nold committed Feb 21, 2024
1 parent 6a3e8b1 commit b534c49
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/local-ai/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ appVersion: 1.40
description: A Helm chart for deploying LocalAI to a Kubernetes cluster
name: local-ai
type: application
version: 3.1.0
version: 3.2.0
3 changes: 3 additions & 0 deletions charts/local-ai/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ spec:
checksum/config-prompt-templates: {{ include (print $.Template.BasePath "/configmap-prompt-templates.yaml") . | sha256sum }}
{{- end }}
spec:
{{- with .Values.deployment.runtimeClassName }}
runtimeClassName: {{ . }}
{{- end }}
{{- with .Values.deployment.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 8 }}
Expand Down
3 changes: 3 additions & 0 deletions charts/local-ai/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ deployment:
pullPolicy: IfNotPresent
imagePullSecrets: []
# - name: secret-names

## Needed for GPU Nodes
#runtimeClassName: gpu

resources:
{}
Expand Down

0 comments on commit b534c49

Please sign in to comment.