Initial chart import from local infrastructure/
This commit is contained in:
16
templates/postgres-service.yaml
Normal file
16
templates/postgres-service.yaml
Normal file
@@ -0,0 +1,16 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: {{ include "instance.fullname" . }}-pg
|
||||
labels:
|
||||
{{- include "instance.labels" . | nindent 4 }}
|
||||
spec:
|
||||
selector:
|
||||
app.kubernetes.io/instance: {{ .Values.instance.code | quote }}
|
||||
odoosky.io/role: postgres
|
||||
ports:
|
||||
- name: pg
|
||||
port: 5432
|
||||
targetPort: 5432
|
||||
# Headless service — required for StatefulSet stable DNS.
|
||||
clusterIP: None
|
||||
Reference in New Issue
Block a user