rename ports, labels and service settings

This commit is contained in:
duhow 2024-02-19 22:33:22 +01:00
parent 0b7f183a03
commit 05e31494c2
No known key found for this signature in database
7 changed files with 25 additions and 18 deletions

View File

@ -12,6 +12,6 @@ spec:
ports:
- protocol: TCP
name: http
port: {{ .port }}
targetPort: {{ .containerPort }}
port: http
targetPort: {{ .port }}
{{- end }}

View File

@ -13,13 +13,14 @@ spec:
template:
metadata:
labels:
{{- include "ollama.selectorLabels" . | nindent 8 }}
{{- include "ollama.labels" . | nindent 8 }}
spec:
containers:
- name: {{ include "ollama.name" . }}
image: {{ .Values.ollama.image }}
ports:
- containerPort: {{ .Values.ollama.servicePort }}
- name: http
containerPort: {{ .Values.ollama.service.containerPort }}
env:
{{- if .Values.ollama.gpu.enabled }}
- name: PATH

View File

@ -5,20 +5,21 @@ metadata:
labels:
{{- include "open-webui.labels" . | nindent 4 }}
spec:
replicas: 1
replicas: {{ .Values.webui.replicaCount }}
selector:
matchLabels:
{{- include "open-webui.selectorLabels" . | nindent 6 }}
template:
metadata:
labels:
{{- include "open-webui.selectorLabels" . | nindent 8 }}
{{- include "open-webui.labels" . | nindent 8 }}
spec:
containers:
- name: {{ .Chart.Name }}
image: {{ .Values.webui.image }}
ports:
- containerPort: 8080
- name: http
containerPort: {{ .Values.webui.service.containerPort }}
{{- with .Values.webui.resources }}
resources: {{- toYaml . | nindent 10 }}
{{- end }}

View File

@ -18,7 +18,7 @@ spec:
pathType: Prefix
backend:
service:
name: open-webui-service
name: {{ include "open-webui.name" . }}
port:
number: {{ .Values.webui.servicePort }}
number: {{ .Values.webui.service.port }}
{{- end }}

View File

@ -3,9 +3,9 @@ kind: PersistentVolumeClaim
metadata:
name: {{ include "open-webui.name" . }}
labels:
{{- include "open-webui.labels" . | nindent 4 }}
{{- include "open-webui.selectorLabels" . | nindent 4 }}
spec:
accessModes: [ "ReadWriteOnce" ]
resources:
requests:
storage: {{ .Values.webui.volumeSize }}
storage: {{ .Values.webui.persistence.size }}

View File

@ -11,8 +11,8 @@ spec:
type: {{ .type }}
ports:
- protocol: TCP
port: {{ .port }}
targetPort: {{ .containerPort }}
port: http
targetPort: {{ .port }}
{{- if .nodePort }}
nodePort: {{ .nodePort }}
{{- end }}

View File

@ -1,7 +1,6 @@
ollama:
replicaCount: 1
image: ollama/ollama:latest
servicePort: 11434
resources:
requests:
cpu: "2000m"
@ -15,13 +14,14 @@ ollama:
tolerations: []
service:
type: ClusterIP
port: 80
containerPort: 11434
gpu:
enabled: false
webui:
replicaCount: 1
image: ghcr.io/open-webui/open-webui:main
servicePort: 8080
resources:
requests:
cpu: "500m"
@ -31,12 +31,17 @@ webui:
memory: "1Gi"
ingress:
enabled: true
annotations:
annotations: {}
# Use appropriate annotations for your Ingress controller, e.g., for NGINX:
# nginx.ingress.kubernetes.io/rewrite-target: /
host: open-webui.minikube.local
volumeSize: 2Gi
persistence:
enabled: true
size: 2Gi
nodeSelector: {}
tolerations: []
service:
type: NodePort
type: ClusterIP
port: 80
containerPort: 8080
nodePort: ""