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 }}