templates/service.yaml を追加

This commit is contained in:
2026-02-07 00:12:01 +00:00
parent 1f091eea12
commit 8f1bdd5596

15
templates/service.yaml Normal file
View File

@@ -0,0 +1,15 @@
apiVersion: v1
kind: Service
metadata:
name: {{ include "postgresql.fullname" . }}
labels:
{{- include "postgresql.labels" . | nindent 4 }}
spec:
type: {{ .Values.service.type }}
ports:
- port: {{ .Values.service.port }}
targetPort: postgres
protocol: TCP
name: postgres
selector:
{{- include "postgresql.selectorLabels" . | nindent 4 }}