{{- /* GCE L7 BackendConfig for supabase-studio. Mirror of kong/backendconfig.yaml. Studio is a Next.js app on port 3000 that returns 301 redirects on `/` (not 200), which trips GCE's default HTTP healthCheck and marks the backend UNHEALTHY. A TCP healthCheck is sufficient for LB-level liveness. Rendered only when .Values.service.studio.backendConfigName is set. */ -}} {{- if and .Values.deployment.studio.enabled (.Values.service.studio.backendConfigName | default "") -}} apiVersion: cloud.google.com/v1 kind: BackendConfig metadata: name: {{ .Values.service.studio.backendConfigName | quote }} labels: {{- include "supabase.labels" . | nindent 4 }} spec: healthCheck: type: TCP port: {{ .Values.service.studio.port | default 3000 }} checkIntervalSec: 15 timeoutSec: 5 healthyThreshold: 1 unhealthyThreshold: 3 connectionDraining: drainingTimeoutSec: 30 {{- end }}