add labels and selectors

This commit is contained in:
duhow committed 2024-02-19 22:23:36 +01:00
1 parent cbaada1410
commit 0b7f183a03
7 files changed
+75 -23

No files matched your search

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