- 添加 Gitea Actions 工作流 (.gitea/workflows/) - cicd.yml: 完整 CICD 流程(构建、测试、推送、部署) - test.yml: 快速测试工作流 - 配置 Kubernetes 部署清单 (k8s/) - namespace.yaml: 创建 claude-stock namespace - configmap.yaml: 应用配置和 Ollama 连接配置 - deployment.yaml: 后端和前端部署(支持 Node IP 连接 Ollama) - service.yaml: 服务定义、RBAC 和网络策略 - ollama-bridge.yaml: 四种 K8s 与宿主 Ollama 通信方案 - secrets.sh: 自动创建 K8s Secrets - 部署脚本和工具 - deploy-to-k8s.sh: 一键 K8s 部署脚本 - verify-cicd.sh: CICD 环境验证脚本 - 文档 - CICD_DEPLOYMENT_GUIDE.md: 完整部署指南(中文) - QUICK_START.md: 5 分钟快速启动指南(中文) 关键功能: ✅ Gitea Runners(Docker + K8s) ✅ Harbor 镜像仓库集成 ✅ 自动化测试和安全扫描 ✅ K8s 滚动更新和健康检查 ✅ Ollama 集成(使用 Node IP 解决通信问题) ✅ 完整的部署后验证 🤖 Generated with Claude Code Co-Authored-By: Claude <noreply@anthropic.com>
46 lines
1.9 KiB
JSON
46 lines
1.9 KiB
JSON
{
|
|
"permissions": {
|
|
"allow": [
|
|
"Bash(mkdir:*)",
|
|
"Bash(tree:*)",
|
|
"Bash(cat:*)",
|
|
"Bash(docker:*)",
|
|
"Bash(docker-compose:*)",
|
|
"Bash(pip install:*)",
|
|
"Bash(python3:*)",
|
|
"Bash(find:*)",
|
|
"Bash(lsof:*)",
|
|
"Bash(xargs -r kill -9 lsof -i :5432)",
|
|
"Bash(xargs -r kill -9 lsof -i :8000)",
|
|
"Bash(xargs -r kill -9 lsof -i :8080)",
|
|
"Bash(xargs:*)",
|
|
"Bash(netstat:*)",
|
|
"Bash(sudo killall:*)",
|
|
"Bash(curl:*)",
|
|
"Bash(echo:*)",
|
|
"Bash(timeout 120 curl:*)",
|
|
"Bash(git -C /root/work/stock log --oneline -10)",
|
|
"Bash(/dev/null)",
|
|
"Bash(python:*)",
|
|
"Bash(pip3 install:*)",
|
|
"Bash(npm install)",
|
|
"Bash(npm run build:*)",
|
|
"Bash(git add:*)",
|
|
"Bash(git commit:*)",
|
|
"Bash(git push:*)",
|
|
"Bash(stock_backend:latest)",
|
|
"Bash(__NEW_LINE__ echo \"=== Testing AAPL (Stock) ===\" curl -s -X POST http://localhost:8001/api/collab/recommend -H \"Content-Type: application/json\" -d '{\"\"\"\"symbol\"\"\"\": \"\"\"\"AAPL\"\"\"\"}')",
|
|
"Bash(__NEW_LINE__ echo \"=== Testing AAPL (US Stock) ===\" curl -s -X POST http://localhost:8001/api/collab/recommend -H \"Content-Type: application/json\" -d '{\"\"\"\"symbol\"\"\"\": \"\"\"\"AAPL\"\"\"\"}')",
|
|
"Bash(__NEW_LINE__ echo \"=== Git Status ===\" git log --oneline -5 git status)",
|
|
"Bash(__NEW_LINE__ echo \"=== Git Log ===\" git log --oneline -3)",
|
|
"Bash(__NEW_LINE__ curl -s -X POST http://localhost:8001/api/collab/recommend -H \"Content-Type: application/json\" -d '{\"\"\"\"symbol\"\"\"\": \"\"\"\"AAPL\"\"\"\"}')",
|
|
"Bash(__NEW_LINE__ curl -s -X POST http://localhost:8001/api/collab/recommend -H \"Content-Type: application/json\" -d '{\"\"\"\"symbol\"\"\"\": \"\"\"\"EURUSD=X\"\"\"\"}')",
|
|
"Bash(timeout:*)",
|
|
"Bash(kubectl cluster-info:*)",
|
|
"Bash(chmod:*)"
|
|
],
|
|
"deny": [],
|
|
"ask": []
|
|
}
|
|
}
|