From 99e1419556cdf7fe89c670db1dcf6a65e77a9954 Mon Sep 17 00:00:00 2001 From: Florian RICHER Date: Wed, 11 Jun 2025 10:30:41 +0200 Subject: [PATCH] Add supabase test --- README.md | 2 +- supabase/.gitignore | 1 + supabase/README.md | 19 ++++++ supabase/values.yaml | 154 +++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 175 insertions(+), 1 deletion(-) create mode 100644 supabase/.gitignore create mode 100644 supabase/README.md create mode 100644 supabase/values.yaml diff --git a/README.md b/README.md index 7c6bb56..09cf8ac 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ ## Minikube -- minikube start --driver=kvm2 --nodes=3 --kvm-qemu-uri=qemu:///system --kvm-network=default --cpus=8 --memory=8g +- minikube start --driver=kvm2 --nodes=3 --kvm-qemu-uri=qemu:///system --kvm-network=default --cpus= --memory=g - minikube delete --purge - minikube addons enable metrics-server - minikube dashboard diff --git a/supabase/.gitignore b/supabase/.gitignore new file mode 100644 index 0000000..769803c --- /dev/null +++ b/supabase/.gitignore @@ -0,0 +1 @@ +supabase-kubernetes/ \ No newline at end of file diff --git a/supabase/README.md b/supabase/README.md new file mode 100644 index 0000000..66395a3 --- /dev/null +++ b/supabase/README.md @@ -0,0 +1,19 @@ +# Project + +## Install Supabase + +1. Add the repository + +``` +git clone https://github.com/supabase-community/supabase-kubernetes +``` + +2. Install Supabase + +``` +helm install supabase supabase-kubernetes/charts/supabase/ -f values.yaml +``` + +## Links + +- [HELM github repo](https://github.com/supabase-community/supabase-kubernetes/tree/main) \ No newline at end of file diff --git a/supabase/values.yaml b/supabase/values.yaml new file mode 100644 index 0000000..c8f46e0 --- /dev/null +++ b/supabase/values.yaml @@ -0,0 +1,154 @@ +secret: + jwt: + anonKey: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyAgCiAgICAicm9sZSI6ICJhbm9uIiwKICAgICJpc3MiOiAic3VwYWJhc2UtZGVtbyIsCiAgICAiaWF0IjogMTY0MTc2OTIwMCwKICAgICJleHAiOiAxNzk5NTM1NjAwCn0.dc_X5iR_VP_qT0zsiyj_I_OZ2T9FtRU2BBNWN8Bu4GE + serviceKey: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyAgCiAgICAicm9sZSI6ICJzZXJ2aWNlX3JvbGUiLAogICAgImlzcyI6ICJzdXBhYmFzZS1kZW1vIiwKICAgICJpYXQiOiAxNjQxNzY5MjAwLAogICAgImV4cCI6IDE3OTk1MzU2MDAKfQ.DaYlNEoUrrEn2Ig7tqibS-PHK5vgusbcbo7X36XVt4Q + secret: your-super-secret-jwt-token-with-at-least-32-characters-long + smtp: + username: your-mail@example.com + password: example123456 + dashboard: + username: supabase + password: this_password_is_insecure_and_should_be_updated + db: + username: postgres + password: example123456 + database: postgres + analytics: + apiKey: your-super-secret-and-long-logflare-key + +db: + enabled: true + image: + tag: 15.1.0.147 + livenessProbe: + exec: + command: + - pg_isready + - -U + - postgres + initialDelaySeconds: 3 + persistence: + enabled: false + +studio: + image: + tag: 20240326-5e5586d + environment: + STUDIO_DEFAULT_ORGANIZATION: "My Organization" + STUDIO_DEFAULT_PROJECT: "My Project" + SUPABASE_PUBLIC_URL: http://example.com/ + NEXT_PUBLIC_ENABLE_LOGS: "true" + livenessProbe: + httpGet: + path: /api/profile + port: 3000 + initialDelaySeconds: 3 + +auth: + image: + tag: v2.143.0 + environment: + API_EXTERNAL_URL: http://example.com + GOTRUE_SITE_URL: http://example.com + GOTRUE_EXTERNAL_EMAIL_ENABLED: "true" + GOTRUE_MAILER_AUTOCONFIRM: "true" + GOTRUE_SMTP_ADMIN_EMAIL: "your-mail@example.com" + GOTRUE_SMTP_HOST: "smtp.example.com" + GOTRUE_SMTP_PORT: "587" + GOTRUE_SMTP_SENDER_NAME: "your-mail@example.com" + +rest: + image: + tag: v12.0.1 + +realtime: + image: + tag: v2.27.5 + livenessProbe: + httpGet: + path: / + port: 4000 + initialDelaySeconds: 3 + +meta: + image: + tag: v0.80.0 + +storage: + image: + tag: v0.46.4 + livenessProbe: + httpGet: + path: /status + port: 5000 + initialDelaySeconds: 3 + persistence: + enabled: false + +imgproxy: + image: + tag: v3.8.0 + environment: + IMGPROXY_ENABLE_WEBP_DETECTION: "true" + livenessProbe: + exec: + command: + - imgproxy + - health + initialDelaySeconds: 3 + persistence: + enabled: false + +kong: + image: + repository: kong + tag: 2.8.1 + environment: + KONG_DECLARATIVE_CONFIG: /usr/local/kong/kong.yml + KONG_LOG_LEVEL: info + ingress: + enabled: true + className: "nginx" + annotations: + nginx.ingress.kubernetes.io/rewrite-target: / + tls: [] + # - secretName: example-ingress-tls + # hosts: + # - example.com + hosts: + - host: example.com + paths: + - path: / + pathType: Prefix + +analytics: + image: + tag: 1.4.0 + livenessProbe: + httpGet: + path: /health + port: 4000 + initialDelaySeconds: 3 + +vector: + image: + tag: 0.34.0-alpine + livenessProbe: + httpGet: + path: /health + port: 9001 + initialDelaySeconds: 3 + ## Vector requires logs from the control plane to function. + ## This is normally stored in /var/log/pods + ## Modify these values according to your environment. + volumeMounts: + - name: pod-logs + mountPath: /var/log/pods + volumes: + - name: pod-logs + hostPath: + path: /var/log/pods + +functions: + image: + tag: v1.41.2