From 398fbc0f0a5bf97018a02a9dc45f8549cc22291e Mon Sep 17 00:00:00 2001 From: titver968 Date: Fri, 28 Feb 2025 13:07:32 +0100 Subject: [PATCH] new service.yaml template --- tatort/templates/service.yaml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/tatort/templates/service.yaml b/tatort/templates/service.yaml index 6fba2d7..f9a22ac 100644 --- a/tatort/templates/service.yaml +++ b/tatort/templates/service.yaml @@ -2,12 +2,18 @@ apiVersion: v1 kind: Service metadata: name: {{ include "tatort.fullname" . }} + labels: + {{- include "tatort.labels" . | nindent 4 }} + {{- with .Values.service.annotations }} + annotations: + {{- toYaml . | nindent 4 }} + {{- end }} spec: type: {{ .Values.service.type }} - selector: - app: {{ include "tatort.name" . }} ports: - port: {{ .Values.service.port }} - targetPort: 80 + targetPort: {{ .Values.service.name }} protocol: TCP - name: http + name: {{ .Values.service.name }} + selector: + {{- include "tatort.selectorLabels" . | nindent 4 }}