templates/service-replica.yaml を追加

This commit is contained in:
2026-02-07 00:18:46 +00:00
parent c31e10565d
commit 724d3b99b6

View File

@@ -0,0 +1,19 @@
{{- if .Values.replication.enabled }}
apiVersion: v1
kind: Service
metadata:
name: {{ include "postgresql.fullname" . }}-replica
labels:
{{- include "postgresql.labels" . | nindent 4 }}
app.kubernetes.io/component: replica
spec:
type: {{ .Values.service.type }}
ports:
- port: {{ .Values.service.port }}
targetPort: postgres
protocol: TCP
name: postgres
selector:
{{- include "postgresql.selectorLabels" . | nindent 4 }}
app.kubernetes.io/component: replica
{{- end }}