pod optimization and advanced settings

This commit is contained in:
duhow 2024-02-19 23:32:50 +01:00
parent f82347ead6
commit 18463d935e
No known key found for this signature in database
5 changed files with 17 additions and 2 deletions

View file

@ -22,6 +22,8 @@ spec:
{{- toYaml . | nindent 8 }}
{{- end }}
spec:
enableServiceLinks: false
automountServiceAccountToken: false
containers:
- name: {{ .Chart.Name }}
{{- with .Values.webui.image }}
@ -39,7 +41,7 @@ spec:
mountPath: /app/backend/data
env:
- name: OLLAMA_API_BASE_URL
value: {{ printf "http://%s.%s.svc.cluster.local:%s/api" (include "ollama.name" .) (.Release.Namespace) (.Values.ollama.servicePort) | quote }}
value: {{ include "ollama.url" . | quote }}
tty: true
{{- with .Values.webui.nodeSelector }}
nodeSelector: