Files
omnex/deploy/chart-vitrine/postgresql/templates/service.yaml
T
Xor290 8d857faa45
ci-api / test (push) Successful in 23m32s
ci-web / test (push) Successful in 14m7s
chore: build
2026-09-20 18:52:09 +02:00

33 lines
797 B
YAML

apiVersion: v1
kind: Service
metadata:
name: {{ include "postgresql.fullname" . }}
labels:
{{- include "postgresql.labels" . | nindent 4 }}
spec:
type: {{ .Values.service.type }}
selector:
{{- include "postgresql.selectorLabels" . | nindent 4 }}
ports:
- name: postgresql
port: {{ .Values.service.port }}
targetPort: postgresql
protocol: TCP
---
# Service headless pour le StatefulSet
apiVersion: v1
kind: Service
metadata:
name: {{ include "postgresql.fullname" . }}-headless
labels:
{{- include "postgresql.labels" . | nindent 4 }}
spec:
type: ClusterIP
clusterIP: None
selector:
{{- include "postgresql.selectorLabels" . | nindent 4 }}
ports:
- name: postgresql
port: {{ .Values.service.port }}
targetPort: postgresql