SuperAPI AI 工具集

deploy-self-hosted

部署与运维

查看项目

更新于 10-16 09:55

技能介绍

用途:在 Kubernetes 上用 Helm 自托管安装 Scalekit,完成后即停止,不负责编写 SaaSKit 登录逻辑。

主要能力与要求:生产环境必须使用企业许可证,并通过分发门户获取 chart 与 registry token;必须使用外部 PostgreSQL 15+ 和 Redis 6.2+(内置数据库仅限评估)。需准备 kubectl 1.27+、Helm 3.12+、GatewayClass、TLS、SMTP、域名、registry token。

步骤:先选择路径,评估/内置 DB 或 Minikube 概念验证转 references/quickstart.md;生产走本流程。用 references/production-deployment.md 的 setup-secrets.sh 生成并应用密钥,确认 kubectl get secrets -n <namespace>。编写 values.yaml,app.domain 不带协议且无尾斜杠,postgresql.enabled: false、redis.enabled: false。在分发门户创建 Onprem 部署、粘贴 values.yaml,复制并运行 connect 命令,门户负责 chart 与迁移,数据库需提前创建。DNS 用通配 A 记录 *.<domain> 指向 Gateway ADDRESS,dig 验证。检查 kubectl get pods 全部 Running,访问 https://app.<domain>,设置 export SCALEKIT_ENVIRONMENT_URL="https://app.<domain>"。

限制:不得提交 registry token、SMTP 或数据库密码;必须指向 SCALEKIT_ENVIRONMENT_URL=https://app.<domain>,不得用 SCALEKIT_ENV_URL 或 app.scalekit.com;插件 MCP(https://mcp.scalekit.com)仍为云端。登录实现另见 implement-saaskit。字段与排错见 references/。