2024-04-09 04:43:08 +00:00
|
|
|
{{- if not .Values.ollama.externalHost }}
|
2023-12-24 15:34:33 +00:00
|
|
|
apiVersion: v1
|
|
|
|
kind: Service
|
|
|
|
metadata:
|
2024-02-19 20:58:25 +00:00
|
|
|
name: {{ include "ollama.name" . }}
|
2024-02-19 21:23:36 +00:00
|
|
|
labels:
|
|
|
|
{{- include "ollama.labels" . | nindent 4 }}
|
2024-02-19 22:22:10 +00:00
|
|
|
{{- with .Values.ollama.service.annotations }}
|
|
|
|
annotations:
|
|
|
|
{{- toYaml . | nindent 4 }}
|
|
|
|
{{- end }}
|
2023-12-24 15:34:33 +00:00
|
|
|
spec:
|
|
|
|
selector:
|
2024-02-19 21:23:36 +00:00
|
|
|
{{- include "ollama.selectorLabels" . | nindent 4 }}
|
|
|
|
{{- with .Values.ollama.service }}
|
|
|
|
type: {{ .type }}
|
2023-12-24 15:34:33 +00:00
|
|
|
ports:
|
|
|
|
- protocol: TCP
|
2024-02-19 21:23:36 +00:00
|
|
|
name: http
|
2024-02-23 10:09:25 +00:00
|
|
|
port: {{ .port }}
|
|
|
|
targetPort: http
|
2024-02-19 21:23:36 +00:00
|
|
|
{{- end }}
|
2024-04-09 04:43:08 +00:00
|
|
|
{{- end }}
|