Skip to content

Commit

Permalink
Merge pull request #40 from Nold360/feat/runtimeclass
Browse files Browse the repository at this point in the history
feat: add runtimeClassName support
  • Loading branch information
mudler authored Feb 22, 2024
2 parents 6a3e8b1 + b534c49 commit 5e0163b
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 5e0163b

Please sign in to comment.