add labels and selectors

This commit is contained in:
duhow 2024-02-19 22:23:36 +01:00
parent cbaada1410
commit 0b7f183a03
No known key found for this signature in database
7 changed files with 75 additions and 23 deletions

View file

@ -2,11 +2,16 @@ apiVersion: v1
kind: Service
metadata:
name: {{ include "ollama.name" . }}
labels:
{{- include "ollama.labels" . | nindent 4 }}
spec:
type: {{ .Values.ollama.service.type }}
selector:
app: ollama
{{- include "ollama.selectorLabels" . | nindent 4 }}
{{- with .Values.ollama.service }}
type: {{ .type }}
ports:
- protocol: TCP
port: {{ .Values.ollama.servicePort }}
targetPort: {{ .Values.ollama.servicePort }}
name: http
port: {{ .port }}
targetPort: {{ .containerPort }}
{{- end }}