new service.yaml template

This commit is contained in:
titver968
2025-02-28 13:07:32 +01:00
parent 714a5f480c
commit 398fbc0f0a

View File

@@ -2,12 +2,18 @@ apiVersion: v1
kind: Service kind: Service
metadata: metadata:
name: {{ include "tatort.fullname" . }} name: {{ include "tatort.fullname" . }}
labels:
{{- include "tatort.labels" . | nindent 4 }}
{{- with .Values.service.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec: spec:
type: {{ .Values.service.type }} type: {{ .Values.service.type }}
selector:
app: {{ include "tatort.name" . }}
ports: ports:
- port: {{ .Values.service.port }} - port: {{ .Values.service.port }}
targetPort: 80 targetPort: {{ .Values.service.name }}
protocol: TCP protocol: TCP
name: http name: {{ .Values.service.name }}
selector:
{{- include "tatort.selectorLabels" . | nindent 4 }}