feat: 三种部署方式全部验证通过

方案1: docker-compose 双容器(原有,不变)
方案2: 二进制部署(go:embed 前端嵌入)
  - 修复 SPA fallback(c.FileFromFS 301 → c.Data 直接返回)
  - 二进制 22MB,内存 21.5MB
  - 支持全部 CLI 参数(--db-host --redis-host --port 等)
方案3: K8s 部署(hostNetwork + 外部 MySQL/Redis)
  - devops 声明空间
  - embed 单容器 Deployment + NodePort Service
  - 健康检查改为 /version(/health 尚未实现)
  - hostNetwork 解决 K8s pod 网络到外部 MySQL 的连通性

新增: Dockerfile.embed, docker-compose.embed.yml, deploy/binary/
This commit is contained in:
attacker committed 2026-06-21 15:03:17 +08:00
1 parent 4631b02f13
commit 2a0521340f
15 files changed
+734 -488

No files matched your search

+3
View File
@@ -3,6 +3,9 @@
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<link rel="icon" type="image/x-icon" href="/favicon.ico" />
<meta name="theme-color" content="#1e6feb" />
<title>AIOps智能运维平台</title>
</head>
<body>
+21
View File
@@ -0,0 +1,21 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64" width="64" height="64">
<defs>
<linearGradient id="bg" x1="0%" y1="0%" x2="100%" y2="100%">
<stop offset="0%" style="stop-color:#1e6feb"/>
<stop offset="100%" style="stop-color:#0d8abc"/>
</linearGradient>
<linearGradient id="glow" x1="0%" y1="0%" x2="100%" y2="100%">
<stop offset="0%" style="stop-color:#38bdf8"/>
<stop offset="100%" style="stop-color:#22d3ee"/>
</linearGradient>
</defs>
<!-- Rounded square background -->
<rect width="64" height="64" rx="14" fill="url(#bg)"/>
<!-- Stylized "A" — also resembles a mountain peak / monitoring graph -->
<path d="M32 14 L48 50 L40 50 L36.5 41 L27.5 41 L24 50 L16 50 Z M30 34 L34 34 L32 27 Z"
fill="none" stroke="url(#glow)" stroke-width="3.5" stroke-linejoin="round" stroke-linecap="round"/>
<!-- Circuit nodes representing AI/automation -->
<circle cx="32" cy="14" r="2.5" fill="#22d3ee"/>
<circle cx="16" cy="50" r="2.5" fill="#22d3ee"/>
<circle cx="48" cy="50" r="2.5" fill="#22d3ee"/>
</svg>

After

Width:  |  Height:  |  Size: 1.1 KiB