Skip to content

Commit

Permalink
Merge pull request #23 from jadams/main
Browse files Browse the repository at this point in the history
add imagepullpolicy
  • Loading branch information
mudler authored Sep 9, 2023
2 parents b90804f + 0530568 commit 24cd6d2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions charts/local-ai/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ spec:
{{- if .Values.promptTemplates }}
- name: prompt-templates
image: {{ .Values.deployment.prompt_templates.image }}
imagePullPolicy: {{ .Values.image.pullPolicy }}
command: ["/bin/sh", "-c"]
args:
- |
Expand All @@ -43,6 +44,7 @@ spec:
{{- end }}
- name: download-model
image: {{ .Values.deployment.download_model.image }}
imagePullPolicy: {{ .Values.image.pullPolicy }}
command: ["/bin/sh", "-c"]
args:
- |
Expand Down Expand Up @@ -88,6 +90,7 @@ spec:
containers:
- name: {{ template "local-ai.fullname" . }}
image: {{ .Values.deployment.image }}
imagePullPolicy: {{ .Values.image.pullPolicy }}
resources:
{{- toYaml .Values.resources | nindent 12 }}
env:
Expand Down
1 change: 1 addition & 0 deletions charts/local-ai/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ deployment:
prompt_templates:
# To use cloud provided (eg AWS) image, provide it like: 1234356789.dkr.ecr.us-REGION-X.amazonaws.com/busybox
image: busybox
pullPolicy: IfNotPresent

resources:
{}
Expand Down

0 comments on commit 24cd6d2

Please sign in to comment.