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