prole/supabase/helm/prole-supabase/templates/db/external-service.yaml
chrisfu 133b719479 Align CNPG bootstrap placement with Ansible policy
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).
2026-03-18 22:06:41 -07:00

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 }}