From 319c2186c0b4b0cb055701ceb1564b9b87cc8ec0 Mon Sep 17 00:00:00 2001 From: pieter Date: Thu, 20 Nov 2025 06:57:31 +0000 Subject: [PATCH] =?UTF-8?q?templates/service.yaml=20=E3=82=92=E6=9B=B4?= =?UTF-8?q?=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/service.yaml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/templates/service.yaml b/templates/service.yaml index a1c988d..5ca42bc 100644 --- a/templates/service.yaml +++ b/templates/service.yaml @@ -1,15 +1,19 @@ apiVersion: v1 kind: Service metadata: - name: {{ include "{{ .Chart.Name }}.fullname" . }} + name: {{ include "phpmyadmin-nginx.fullname" . }} labels: - {{- include "{{ .Chart.Name }}.labels" . | nindent 4 }} + {{- include "phpmyadmin-nginx.labels" . | nindent 4 }} + {{- with .Values.service.annotations }} + annotations: + {{- toYaml . | nindent 4 }} + {{- end }} spec: type: {{ .Values.service.type }} ports: - port: {{ .Values.service.port }} - targetPort: 80 + targetPort: {{ .Values.service.targetPort }} protocol: TCP name: http selector: - {{- include "{{ .Chart.Name }}.selectorLabels" . | nindent 4 }} + {{- include "phpmyadmin-nginx.selectorLabels" . | nindent 4 }} \ No newline at end of file