prole/supabase/helm/knoe-supabase/templates/db/external-service.yaml
chrisfu c023c7f590 stabilize unattended GKE Supabase/CNPG deployment
- align app/db cluster defaults for knoe-dev-0 + knoe-dev-cnpg-0 on e2-standard-2\n- harden Supabase deploy flow for cross-cluster DB ILB, GKE storage class, and node selector fallback\n- migrate Helm chart path to knoe-supabase and make external DB host rendering IP-safe\n- disable Kerberos in prod unattended config to prevent Supabase GSS auth failures\n- add Supabase port-forward mappings and DB backup context handling improvements\n\nBuild status: k8s stable

Co-authored-by: Junie <junie@jetbrains.com>
2026-04-10 15:53:58 -07:00

16 lines
592 B
YAML

{{- if and (not .Values.deployment.db.enabled) .Values.externalDatabase.enabled .Values.externalDatabase.createAliasService (not (regexMatch "^([0-9]{1,3}\\.){3}[0-9]{1,3}$" (toString .Values.externalDatabase.host))) -}}
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 }}