Skip to content

Commit

Permalink
refactor(charts/cog-ai-model/templates/deployment.yaml,charts/cog-ai-…
Browse files Browse the repository at this point in the history
…model/values.yaml): Update deployment configuration with runtimeClassName

Change the default runtimeClassName in the charts for Cog AI Model.
Add a new optional field 'runtimeClassName' to the values.yaml file.
  • Loading branch information
sergiotejon committed Feb 20, 2024
1 parent cb86d2f commit 31a606b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 3 additions & 1 deletion charts/cog-ai-model/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ spec:
{{- toYaml . | nindent 8 }}
{{- end }}
spec:
runtimeClassName: nvidia
{{- if not .Values.runtimeClassName }}
runtimeClassName: {{ .Values.runtimeClassName }}
{{- end }}
{{- with .Values.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 8 }}
Expand Down
3 changes: 3 additions & 0 deletions charts/cog-ai-model/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ config:
modelLocalDir: "/var/huggingface/cache"
modelMountDir: "/root/.cache/huggingface"

runtimeClassName: nvidia

imagePullSecrets: []
nameOverride: ""
fullnameOverride: ""
Expand Down Expand Up @@ -153,3 +155,4 @@ readinessProbe:

envs: {}
envsFrom: {}

0 comments on commit 31a606b

Please sign in to comment.