mirror of
https://github.com/open-webui/helm-charts
synced 2025-06-16 11:31:30 +00:00
Merge pull request #13 from abhishek-ch/missing_affinity
Added provision of affinity and env vars
This commit is contained in:
commit
a49a2f38ef
@ -42,11 +42,25 @@ spec:
|
|||||||
env:
|
env:
|
||||||
- name: OLLAMA_BASE_URLS
|
- name: OLLAMA_BASE_URLS
|
||||||
value: {{ include "ollamaBaseUrls" . | quote }}
|
value: {{ include "ollamaBaseUrls" . | quote }}
|
||||||
|
{{- with .Values.extraEnvVars }}
|
||||||
|
{{- range . }}
|
||||||
|
- name: {{ .name }}
|
||||||
|
value: {{ .value | quote }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
tty: true
|
tty: true
|
||||||
{{- with .Values.nodeSelector }}
|
{{- with .Values.nodeSelector }}
|
||||||
nodeSelector:
|
nodeSelector:
|
||||||
{{- toYaml . | nindent 8 }}
|
{{- toYaml . | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- with .Values.tolerations }}
|
||||||
|
tolerations:
|
||||||
|
{{- toYaml . | nindent 8 }}
|
||||||
|
{{- end }}
|
||||||
|
{{- with .Values.affinity }}
|
||||||
|
affinity:
|
||||||
|
{{- toYaml . | nindent 8 }}
|
||||||
|
{{- end }}
|
||||||
volumes:
|
volumes:
|
||||||
{{- if and .Values.persistence.enabled .Values.persistence.existingClaim }}
|
{{- if and .Values.persistence.enabled .Values.persistence.existingClaim }}
|
||||||
- name: data
|
- name: data
|
||||||
|
@ -49,8 +49,16 @@ persistence:
|
|||||||
storageClass: ""
|
storageClass: ""
|
||||||
selector: {}
|
selector: {}
|
||||||
annotations: {}
|
annotations: {}
|
||||||
|
|
||||||
|
# -- Node labels for pod assignment.
|
||||||
nodeSelector: {}
|
nodeSelector: {}
|
||||||
|
|
||||||
|
# -- Tolerations for pod assignment
|
||||||
tolerations: []
|
tolerations: []
|
||||||
|
|
||||||
|
# -- Affinity for pod assignment
|
||||||
|
affinity: {}
|
||||||
|
|
||||||
service:
|
service:
|
||||||
type: ClusterIP
|
type: ClusterIP
|
||||||
annotations: {}
|
annotations: {}
|
||||||
@ -59,3 +67,8 @@ service:
|
|||||||
nodePort: ""
|
nodePort: ""
|
||||||
labels: {}
|
labels: {}
|
||||||
loadBalancerClass: ""
|
loadBalancerClass: ""
|
||||||
|
|
||||||
|
# -- Additional environments variables on the output Deployment definition.
|
||||||
|
extraEnvVars: []
|
||||||
|
# - name: OLLAMA_DEBUG
|
||||||
|
# value: "1"
|
||||||
|
Loading…
Reference in New Issue
Block a user