templates/service.yaml を更新

This commit is contained in:
2025-11-20 06:57:31 +00:00
parent 927aa139f8
commit 319c2186c0

View File

@@ -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 }}