templates/service-headless.yaml を追加

This commit is contained in:
2026-02-07 00:19:27 +00:00
parent 724d3b99b6
commit 2533feda92

View File

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