feat: 添加 K8S 部署功能
- 新增 src/k8s-client.ts: K8S 客户端封装 - 新增 src/deploy.ts: 部署/删除/状态查询逻辑 - 新增 scripts/deploy.ts: 命令行部署工具 - 更新 .env.example: 添加 K8S 配置项 - 安装 @kubernetes/client-node@1.3.0 依赖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -7,3 +7,11 @@ ANTHROPIC_BASE_URL=https://api.anthropic.com
|
||||
|
||||
# 服务端口(默认 3000)
|
||||
PORT=3000
|
||||
|
||||
# K8S 部署配置
|
||||
K8S_API_URL=http://10.0.0.52:23972
|
||||
K8S_API_TOKEN=your_fixed_token_here
|
||||
|
||||
# 域名配置
|
||||
DEV_HOST="*.dev.d8d.fun"
|
||||
DEV_TLS_SECRET_NAME="dev-d8d-tls"
|
||||
|
||||
Reference in New Issue
Block a user