forked from open-webui/open-webui
		
	pod optimization and advanced settings
This commit is contained in:
		
							parent
							
								
									f82347ead6
								
							
						
					
					
						commit
						18463d935e
					
				
					 5 changed files with 17 additions and 2 deletions
				
			
		|  | @ -6,6 +6,10 @@ | ||||||
| ollama | ollama | ||||||
| {{- end -}} | {{- end -}} | ||||||
| 
 | 
 | ||||||
|  | {{- define "ollama.url" -}} | ||||||
|  | {{- printf "http://%s.%s.svc.cluster.local:%d/api" (include "ollama.name" .) (.Release.Namespace) (.Values.ollama.service.port | int) }} | ||||||
|  | {{- end }} | ||||||
|  | 
 | ||||||
| {{- define "chart.name" -}} | {{- define "chart.name" -}} | ||||||
| {{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }} | {{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }} | ||||||
| {{- end }} | {{- end }} | ||||||
|  |  | ||||||
|  | @ -23,6 +23,11 @@ spec: | ||||||
|         {{- toYaml . | nindent 8 }} |         {{- toYaml . | nindent 8 }} | ||||||
|       {{- end }} |       {{- end }} | ||||||
|     spec: |     spec: | ||||||
|  |       enableServiceLinks: false | ||||||
|  |       automountServiceAccountToken: false | ||||||
|  |       {{- with .Values.ollama.runtimeClassName }} | ||||||
|  |       runtimeClassName: {{ . }} | ||||||
|  |       {{- end }} | ||||||
|       containers: |       containers: | ||||||
|       - name: {{ include "ollama.name" . }} |       - name: {{ include "ollama.name" . }} | ||||||
|         {{- with .Values.ollama.image }} |         {{- with .Values.ollama.image }} | ||||||
|  |  | ||||||
|  | @ -22,6 +22,8 @@ spec: | ||||||
|         {{- toYaml . | nindent 8 }} |         {{- toYaml . | nindent 8 }} | ||||||
|       {{- end }} |       {{- end }} | ||||||
|     spec: |     spec: | ||||||
|  |       enableServiceLinks: false | ||||||
|  |       automountServiceAccountToken: false | ||||||
|       containers: |       containers: | ||||||
|       - name: {{ .Chart.Name }} |       - name: {{ .Chart.Name }} | ||||||
|         {{- with .Values.webui.image }} |         {{- with .Values.webui.image }} | ||||||
|  | @ -39,7 +41,7 @@ spec: | ||||||
|           mountPath: /app/backend/data |           mountPath: /app/backend/data | ||||||
|         env: |         env: | ||||||
|         - name: OLLAMA_API_BASE_URL |         - 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 |         tty: true | ||||||
|       {{- with .Values.webui.nodeSelector }} |       {{- with .Values.webui.nodeSelector }} | ||||||
|       nodeSelector: |       nodeSelector: | ||||||
|  |  | ||||||
|  | @ -20,5 +20,5 @@ spec: | ||||||
|           service: |           service: | ||||||
|             name: {{ include "open-webui.name" . }} |             name: {{ include "open-webui.name" . }} | ||||||
|             port: |             port: | ||||||
|               number: {{ .Values.webui.service.port }} |               name: http | ||||||
| {{- end }} | {{- end }} | ||||||
|  |  | ||||||
|  | @ -1,3 +1,5 @@ | ||||||
|  | nameOverride: "" | ||||||
|  | 
 | ||||||
| ollama: | ollama: | ||||||
|   annotations: {} |   annotations: {} | ||||||
|   podAnnotations: {} |   podAnnotations: {} | ||||||
|  | @ -16,6 +18,8 @@ ollama: | ||||||
|     selector: {} |     selector: {} | ||||||
|     annotations: {} |     annotations: {} | ||||||
|   nodeSelector: {} |   nodeSelector: {} | ||||||
|  |   # -- If using a special runtime container such as nvidia, set it here. | ||||||
|  |   runtimeClassName: "" | ||||||
|   tolerations: |   tolerations: | ||||||
|   - key: nvidia.com/gpu |   - key: nvidia.com/gpu | ||||||
|     operator: Exists |     operator: Exists | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 duhow
						duhow