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: ports:
- protocol: TCP - protocol: TCP
name: http name: http
port: {{ .port }} port: http
targetPort: {{ .containerPort }} targetPort: {{ .port }}
{{- end }} {{- end }}

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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