mirror of
https://github.com/open-webui/open-webui
synced 2024-11-22 08:07:55 +00:00
let ingress be enabled by default
This commit is contained in:
parent
54e89a4516
commit
02ce0c47f4
@ -1,11 +1,13 @@
|
|||||||
|
{{- if .Values.webui.ingress.enabled }}
|
||||||
apiVersion: networking.k8s.io/v1
|
apiVersion: networking.k8s.io/v1
|
||||||
kind: Ingress
|
kind: Ingress
|
||||||
metadata:
|
metadata:
|
||||||
name: ollama-webui-ingress
|
name: ollama-webui-ingress
|
||||||
namespace: {{ .Values.namespace }}
|
namespace: {{ .Values.namespace }}
|
||||||
#annotations:
|
{{- if .Values.webui.ingress.annotations }}
|
||||||
# Use appropriate annotations for your Ingress controller, e.g., for NGINX:
|
annotations:
|
||||||
# nginx.ingress.kubernetes.io/rewrite-target: /
|
{{ toYaml .Values.webui.ingress.annotations | trimSuffix "\n" | indent 4 }}
|
||||||
|
{{- end }}
|
||||||
spec:
|
spec:
|
||||||
rules:
|
rules:
|
||||||
- host: {{ .Values.webui.ingress.host }}
|
- host: {{ .Values.webui.ingress.host }}
|
||||||
@ -18,3 +20,4 @@ spec:
|
|||||||
name: ollama-webui-service
|
name: ollama-webui-service
|
||||||
port:
|
port:
|
||||||
number: {{ .Values.webui.servicePort }}
|
number: {{ .Values.webui.servicePort }}
|
||||||
|
{{- end }}
|
||||||
|
@ -20,4 +20,8 @@ webui:
|
|||||||
cpu: "500m"
|
cpu: "500m"
|
||||||
memory: "500Mi"
|
memory: "500Mi"
|
||||||
ingress:
|
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
|
host: ollama.minikube.local
|
||||||
|
Loading…
Reference in New Issue
Block a user