multitenant-down

작성자: posthog

멀티테넌트 K8s 스택을 해체하고, 포트 포워딩을 종료하며, 워커 파드를 정리합니다. 멀티테넌트 모드 테스트가 완료되었을 때 사용하세요.

npx skills add https://github.com/posthog/duckgres --skill multitenant-down

Tear down the multi-tenant K8s stack:

  1. Kill all port-forwards:

    pkill -f 'port-forward.*duckgres' 2>/dev/null
    
  2. Delete the duckgres namespace (removes control plane, workers, RBAC, services):

    kubectl delete namespace duckgres --ignore-not-found
    
  3. Stop the config store:

    docker compose -f k8s/local-config-store.compose.yaml down
    
  4. Clean up the TLS cert:

    rm -f /tmp/duckgres-server.crt
    
  5. Report to the user that the stack is torn down.