mirror of
https://github.com/dredx/prole.git
synced 2026-09-27 22:24:30 +00:00
Prefer infra-managed manifests for bootstrap; reconcile CNPG instances based on Ready+schedulable labeled db nodes; update manifests to use node-role affinity + anti-affinity; add policy/tests and config touch-ups (incl. prole.cfg).
16 lines
499 B
YAML
16 lines
499 B
YAML
{{- if and (not .Values.deployment.db.enabled) .Values.externalDatabase.enabled .Values.externalDatabase.createAliasService -}}
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: {{ default "db" .Values.externalDatabase.aliasServiceName }}
|
|
labels:
|
|
{{- include "supabase.labels" . | nindent 4 }}
|
|
spec:
|
|
type: ExternalName
|
|
externalName: {{ .Values.externalDatabase.host | quote }}
|
|
ports:
|
|
- name: postgres
|
|
port: {{ .Values.externalDatabase.port | int }}
|
|
protocol: TCP
|
|
{{- end }}
|