mirror of
https://github.com/dredx/prole.git
synced 2026-09-23 12:03:59 +00:00
- 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>
51 lines
1.9 KiB
YAML
51 lines
1.9 KiB
YAML
{{- if .Values.deployment.kong.enabled -}}
|
|
apiVersion: batch/v1
|
|
kind: Job
|
|
metadata:
|
|
name: {{ include "supabase.fullname" . }}-test-kong
|
|
labels:
|
|
{{- include "supabase.labels" . | nindent 4 }}
|
|
annotations:
|
|
"helm.sh/hook": test
|
|
spec:
|
|
ttlSecondsAfterFinished: 100
|
|
template:
|
|
spec:
|
|
containers:
|
|
- env:
|
|
- name: DASHBOARD_USERNAME
|
|
valueFrom:
|
|
secretKeyRef:
|
|
{{- if .Values.secret.dashboard.secretRef }}
|
|
name: {{ .Values.secret.dashboard.secretRef }}
|
|
key: {{ .Values.secret.dashboard.secretRefKey.username | default "username" }}
|
|
{{- else }}
|
|
name: {{ include "supabase.secret.dashboard" . }}
|
|
key: username
|
|
{{- end }}
|
|
- name: DASHBOARD_PASSWORD
|
|
valueFrom:
|
|
secretKeyRef:
|
|
{{- if .Values.secret.dashboard.secretRef }}
|
|
name: {{ .Values.secret.dashboard.secretRef }}
|
|
key: {{ .Values.secret.dashboard.secretRefKey.password | default "password" }}
|
|
{{- else }}
|
|
name: {{ include "supabase.secret.dashboard" . }}
|
|
key: password
|
|
{{- end }}
|
|
name: test-kong
|
|
image: kdevup/curljq
|
|
imagePullPolicy: IfNotPresent
|
|
command:
|
|
- /bin/bash
|
|
- -c
|
|
- |
|
|
echo "Attempting to access dashboard with provided credentials..."
|
|
curl -sL --fail \
|
|
-o /dev/null \
|
|
"http://${DASHBOARD_USERNAME}:${DASHBOARD_PASSWORD}@{{ include "supabase.kong.fullname" . }}:{{ .Values.service.kong.port }}" \
|
|
|| ( echo -e "\e[0;31mFailed to get a valid response." && exit 1 )
|
|
echo "Successfully connected."
|
|
restartPolicy: Never
|
|
{{- end }}
|