multitenant-up
द्वारा posthog
स्थानीय Kubernetes पर मल्टी-टेनेंट कंट्रोल प्लेन बनाएं, तैनात करें और पोर्ट-फ़ॉरवर्ड करें। इसका उपयोग तब करें जब आपको प्रति-टीम के साथ मल्टी-टेनेंट मोड में duckgres का परीक्षण करने की आवश्यकता हो…
npx skills add https://github.com/posthog/duckgres --skill multitenant-upBoot up the multi-tenant K8s stack:
-
Build and deploy:
just run-multitenant-local -
Kill any stale port-forwards and start fresh ones:
pkill -f 'port-forward.*duckgres' 2>/dev/null; sleep 1 kubectl -n duckgres port-forward svc/duckgres 5432:5432 &>/dev/null & kubectl -n duckgres port-forward deployment/duckgres-control-plane 8080:8080 &>/dev/null & -
Grab the admin API token:
kubectl -n duckgres logs deployment/duckgres-control-plane | grep 'admin API token' -
Report to the user:
- Admin dashboard: http://localhost:8080 (show the token)
- PG:
PGSSLMODE=require PGPASSWORD=postgres psql -h localhost -U postgres - Default credentials: postgres / postgres