templates/service-primary.yaml を追加

This commit is contained in:
2026-02-07 00:18:05 +00:00
parent f123adcd00
commit c31e10565d

View File

@@ -0,0 +1,17 @@
apiVersion: v1
kind: Service
metadata:
name: {{ include "postgresql.fullname" . }}-primary
labels:
{{- include "postgresql.labels" . | nindent 4 }}
app.kubernetes.io/component: primary
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: primary