Files
charts/tatort/templates/service.yaml
2025-03-07 12:27:11 +01:00

27 lines
643 B
YAML

apiVersion: v1
kind: Service
metadata:
{{- if .Values.service.annotations }}
annotations:
{{ toYaml .Values.service.annotations | indent 4 }}
{{- end }}
name: {{ template "tatort.fullname" . }}
labels:
app: {{ template "tatort.name" . }}
chart: {{ template "tatort.chart" . }}
component: tatort
heritage: {{ .Release.Service }}
release: {{ .Release.Name }}
spec:
type: {{ .Values.service.type }}
ports:
- port: {{ .Values.service.port }}
targetPort: 3000
protocol: TCP
name: npm
selector:
app: {{ template "tatort.name" . }}
component: tatort
release: {{ .Release.Name }}