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:
D8D Developer
2026-03-20 10:19:37 +00:00
parent df81143d5c
commit fec235eade
7 changed files with 1288 additions and 1 deletions

View File

@@ -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"