forked from open-webui/open-webui
		
	Merge pull request #1 from qrkourier/helm-optional-ingress
let ingress be enabled by default
This commit is contained in:
		
						commit
						2cf9166ece
					
				
					 2 changed files with 10 additions and 3 deletions
				
			
		|  | @ -1,11 +1,13 @@ | |||
| {{- if .Values.webui.ingress.enabled }} | ||||
| apiVersion: networking.k8s.io/v1 | ||||
| kind: Ingress | ||||
| metadata: | ||||
|   name: ollama-webui-ingress | ||||
|   namespace: {{ .Values.namespace }} | ||||
|   #annotations: | ||||
|     # Use appropriate annotations for your Ingress controller, e.g., for NGINX: | ||||
|     # nginx.ingress.kubernetes.io/rewrite-target: / | ||||
| {{- if .Values.webui.ingress.annotations }} | ||||
|   annotations: | ||||
| {{ toYaml .Values.webui.ingress.annotations | trimSuffix "\n" | indent 4 }} | ||||
| {{- end }} | ||||
| spec: | ||||
|   rules: | ||||
|   - host: {{ .Values.webui.ingress.host }} | ||||
|  | @ -18,3 +20,4 @@ spec: | |||
|             name: ollama-webui-service | ||||
|             port: | ||||
|               number: {{ .Values.webui.servicePort }} | ||||
| {{- end }} | ||||
|  |  | |||
|  | @ -20,4 +20,8 @@ webui: | |||
|       cpu: "500m" | ||||
|       memory: "500Mi" | ||||
|   ingress: | ||||
|     enabled: true | ||||
|     annotations: | ||||
|     # Use appropriate annotations for your Ingress controller, e.g., for NGINX: | ||||
|       # nginx.ingress.kubernetes.io/rewrite-target: / | ||||
|     host: ollama.minikube.local | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Daniele Viti
						Daniele Viti