mirror of
https://github.com/apricote/Listory.git
synced 2026-01-13 21:21:02 +00:00
21 lines
547 B
YAML
21 lines
547 B
YAML
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: {{ include "listory.fullname" . }}
|
|
labels:
|
|
{{- include "listory.labels" . | nindent 4 }}
|
|
spec:
|
|
type: {{ .Values.service.type }}
|
|
ports:
|
|
- port: {{ .Values.service.port }}
|
|
targetPort: http
|
|
protocol: TCP
|
|
name: http
|
|
{{- if .Values.opentelemetry.metrics.enabled }}
|
|
- port: {{ .Values.opentelemetry.metrics.port }}
|
|
targetPort: metrics
|
|
protocol: TCP
|
|
name: metrics
|
|
{{- end }}
|
|
selector:
|
|
{{- include "listory.selectorLabels" . | nindent 4 }}
|