forked from open-webui/open-webui
update image repository and storage
This commit is contained in:
parent
05e31494c2
commit
0d803aa0fd
3 changed files with 28 additions and 13 deletions
|
@ -17,7 +17,10 @@ spec:
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: {{ include "ollama.name" . }}
|
- name: {{ include "ollama.name" . }}
|
||||||
image: {{ .Values.ollama.image }}
|
{{- with .Values.ollama.image }}
|
||||||
|
image: {{ .repository }}:{{ .tag }}
|
||||||
|
imagePullPolicy: {{ .pullPolicy }}
|
||||||
|
{{- end }}
|
||||||
ports:
|
ports:
|
||||||
- name: http
|
- name: http
|
||||||
containerPort: {{ .Values.ollama.service.containerPort }}
|
containerPort: {{ .Values.ollama.service.containerPort }}
|
||||||
|
@ -29,7 +32,7 @@ spec:
|
||||||
value: /usr/local/nvidia/lib:/usr/local/nvidia/lib64
|
value: /usr/local/nvidia/lib:/usr/local/nvidia/lib64
|
||||||
- name: NVIDIA_DRIVER_CAPABILITIES
|
- name: NVIDIA_DRIVER_CAPABILITIES
|
||||||
value: compute,utility
|
value: compute,utility
|
||||||
{{- end}}
|
{{- end }}
|
||||||
{{- with .Values.ollama.resources }}
|
{{- with .Values.ollama.resources }}
|
||||||
resources: {{- toYaml . | nindent 10 }}
|
resources: {{- toYaml . | nindent 10 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
@ -41,12 +44,10 @@ spec:
|
||||||
nodeSelector:
|
nodeSelector:
|
||||||
{{- toYaml . | nindent 8 }}
|
{{- toYaml . | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- with .Values.ollama.tolerations }}
|
||||||
tolerations:
|
tolerations:
|
||||||
{{- if .Values.ollama.gpu.enabled }}
|
{{- toYaml . | nindent 8 }}
|
||||||
- key: nvidia.com/gpu
|
{{- end }}
|
||||||
operator: Exists
|
|
||||||
effect: NoSchedule
|
|
||||||
{{- end }}
|
|
||||||
volumeClaimTemplates:
|
volumeClaimTemplates:
|
||||||
- metadata:
|
- metadata:
|
||||||
name: ollama-volume
|
name: ollama-volume
|
||||||
|
@ -54,4 +55,4 @@ spec:
|
||||||
accessModes: [ "ReadWriteOnce" ]
|
accessModes: [ "ReadWriteOnce" ]
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
storage: {{ .Values.ollama.volumeSize }}
|
storage: {{ .Values.ollama.persistence.size }}
|
||||||
|
|
|
@ -16,7 +16,10 @@ spec:
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: {{ .Chart.Name }}
|
- name: {{ .Chart.Name }}
|
||||||
image: {{ .Values.webui.image }}
|
{{- with .Values.webui.image }}
|
||||||
|
image: {{ .repository }}:{{ .tag }}
|
||||||
|
imagePullPolicy: {{ .pullPolicy }}
|
||||||
|
{{- end }}
|
||||||
ports:
|
ports:
|
||||||
- name: http
|
- name: http
|
||||||
containerPort: {{ .Values.webui.service.containerPort }}
|
containerPort: {{ .Values.webui.service.containerPort }}
|
||||||
|
|
|
@ -1,6 +1,9 @@
|
||||||
ollama:
|
ollama:
|
||||||
replicaCount: 1
|
replicaCount: 1
|
||||||
image: ollama/ollama:latest
|
image:
|
||||||
|
repository: ollama/ollama
|
||||||
|
tag: latest
|
||||||
|
pullPolicy: Always
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
cpu: "2000m"
|
cpu: "2000m"
|
||||||
|
@ -9,9 +12,14 @@ ollama:
|
||||||
cpu: "4000m"
|
cpu: "4000m"
|
||||||
memory: "4Gi"
|
memory: "4Gi"
|
||||||
nvidia.com/gpu: "0"
|
nvidia.com/gpu: "0"
|
||||||
volumeSize: 30Gi
|
persistence:
|
||||||
|
enabled: true
|
||||||
|
size: 30Gi
|
||||||
nodeSelector: {}
|
nodeSelector: {}
|
||||||
tolerations: []
|
tolerations:
|
||||||
|
- key: nvidia.com/gpu
|
||||||
|
operator: Exists
|
||||||
|
effect: NoSchedule
|
||||||
service:
|
service:
|
||||||
type: ClusterIP
|
type: ClusterIP
|
||||||
port: 80
|
port: 80
|
||||||
|
@ -21,7 +29,10 @@ ollama:
|
||||||
|
|
||||||
webui:
|
webui:
|
||||||
replicaCount: 1
|
replicaCount: 1
|
||||||
image: ghcr.io/open-webui/open-webui:main
|
image:
|
||||||
|
repository: ghcr.io/open-webui/open-webui
|
||||||
|
tag: main
|
||||||
|
pullPolicy: Always
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
cpu: "500m"
|
cpu: "500m"
|
||||||
|
|
Loading…
Reference in a new issue