Skip to content

Commit

Permalink
Merge pull request #21 from javamonkey79/main
Browse files Browse the repository at this point in the history
minor fixes to allow for other aws setups
  • Loading branch information
mudler authored Aug 24, 2023
2 parents e19930c + cb0c6b8 commit 98061d6
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
4 changes: 2 additions & 2 deletions charts/local-ai/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ spec:
initContainers:
{{- if .Values.promptTemplates }}
- name: prompt-templates
image: busybox
image: {{ .Values.deployment.prompt_templates.image }}
command: ["/bin/sh", "-c"]
args:
- |
Expand All @@ -42,7 +42,7 @@ spec:
name: models
{{- end }}
- name: download-model
image: busybox
image: {{ .Values.deployment.download_model.image }}
command: ["/bin/sh", "-c"]
args:
- |
Expand Down
5 changes: 4 additions & 1 deletion charts/local-ai/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,15 @@ metadata:
{{- include "local-ai.labels" . | nindent 4 }}
{{- if .Values.service.annotations }}
annotations:
{{ toYaml .Values.service.annotations | indent 4 }}
{{ toYaml .Values.service.annotations | nindent 4 }}
{{- end }}
spec:
selector:
app.kubernetes.io/name: {{ include "local-ai.name" . }}
type: "{{ .Values.service.type }}"
{{- if .Values.service.externalTrafficPolicy }}
externalTrafficPolicy: {{ .Values.service.externalTrafficPolicy }}
{{- end }}
ports:
- protocol: TCP
port: {{ .Values.service.port }}
Expand Down
8 changes: 8 additions & 0 deletions charts/local-ai/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ deployment:
threads: 4
context_size: 512
modelsPath: "/models"
download_model:
# To use cloud provided (eg AWS) image, provide it like: 1234356789.dkr.ecr.us-REGION-X.amazonaws.com/busybox
image: busybox
prompt_templates:
# To use cloud provided (eg AWS) image, provide it like: 1234356789.dkr.ecr.us-REGION-X.amazonaws.com/busybox
image: busybox

resources:
{}
Expand Down Expand Up @@ -63,6 +69,8 @@ models:

service:
type: ClusterIP
# If deferring to an internal only load balancer
# externalTrafficPolicy: Local
port: 80
annotations: {}
# If using an AWS load balancer, you'll need to override the default 60s load balancer idle timeout
Expand Down

0 comments on commit 98061d6

Please sign in to comment.