Files
charts/streifencheck-dev/backend/templates/service.yaml

27 lines
685 B
YAML

apiVersion: v1
kind: Service
metadata:
{{- if .Values.service.annotations }}
annotations:
{{ toYaml .Values.service.annotations | indent 4 }}
{{- end }}
name: {{ template "streifencheck.fullname" . }}
labels:
app: {{ template "streifencheck.name" . }}
chart: {{ template "streifencheck.chart" . }}
component: streifencheck
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 "streifencheck.name" . }}
component: streifencheck
release: {{ .Release.Name }}