Show Kubernetes and database manifest preparation in parallel

This commit is contained in:
2026-12-01 00:54:50 +08:00
parent 6640cf3b14
commit 1d0b7d9765
+10 -8
View File
@@ -1,6 +1,6 @@
# Bedrock Kubernetes 部署路线 # Bedrock Kubernetes 部署路线
首次部署要准备 Kubernetes 集群、应用镜像和运行配置。三项可以并行,准备好后再提交部署清单。 建集群、构建 Bedrock 镜像、编写部署清单可以并行。集群内 PostgreSQL 的清单在目标集群和命名空间就绪后提交。数据库可连接、Bedrock 镜像和运行配置就绪后,再初始化 Bedrock 存储。
```mermaid ```mermaid
flowchart TD flowchart TD
@@ -38,14 +38,16 @@ flowchart TD
start --> mode start --> mode
start --> compile start --> compile
start --> database start --> database
nodesReady --> imageRef["确认目标集群、命名空间和镜像版本"] nodesReady --> target["确认目标集群和命名空间"]
push --> imageRef target -->|"集群内 PostgreSQL"| applyDatabase["kubectl apply 提交 PostgreSQL 清单"]
secrets --> imageRef inCluster -->|"清单已写好"| applyDatabase
imageRef --> databaseTarget{"使用集群内 PostgreSQL?"} applyDatabase --> dbReady["从目标集群确认 PostgreSQL 可连接"]
databaseTarget -->|"是"| applyDatabase["kubectl apply 提交 PostgreSQL 清单"] target -->|"集群外 PostgreSQL"| dbReady
databaseTarget -->|"否"| dbReady["从目标集群确认 PostgreSQL 可连接"] external -->|"端点已配置"| dbReady
applyDatabase --> dbReady push --> appReady["确认 Bedrock 镜像版本和运行配置"]
secrets --> appReady
dbReady --> init["首次部署时运行 Bedrock 存储初始化"] dbReady --> init["首次部署时运行 Bedrock 存储初始化"]
appReady --> init
init --> apply["kubectl apply 将 Bedrock 清单提交给 API Server"] init --> apply["kubectl apply 将 Bedrock 清单提交给 API Server"]
apply --> schedule["集群调度 Pod,工作节点拉取镜像并启动 Bedrock"] apply --> schedule["集群调度 Pod,工作节点拉取镜像并启动 Bedrock"]
schedule --> verify["检查 rollout、Pod 就绪状态和接口连通性"] schedule --> verify["检查 rollout、Pod 就绪状态和接口连通性"]