使用无重叠滚动策略部署 scheduler
yaml / yaml (pull_request) Successful in 14s

This commit is contained in:
2026-09-20 21:04:45 +00:00
parent 616c87bafd
commit 2b232c4cd2
2 changed files with 6 additions and 3 deletions
+2 -1
View File
@@ -22,7 +22,8 @@ OpenSandbox chart 所有权边界。
## Canary 安全边界 ## Canary 安全边界
- Deployment 为单副本 `Recreate`,避免两个 scheduler 共享同一个 Gitea runner 身份。 - Deployment 为单副本,滚动策略固定 `maxSurge: 0`、`maxUnavailable: 1`,避免两个
scheduler 共享同一个 Gitea runner 身份。
- controller 的 single-flight gate 只允许一个已领取 task 运行;Gitea 接受终态 - controller 的 single-flight gate 只允许一个已领取 task 运行;Gitea 接受终态
`UpdateTask` 后才领取下一条。`POD_CAPACITY=1` 同时限制 worker 创建并发。 `UpdateTask` 后才领取下一条。`POD_CAPACITY=1` 同时限制 worker 创建并发。
- executor 镜像使用 digest;Pod 以 UID 2000 运行,SPIRE `ClusterStaticEntry` 同时绑定 - executor 镜像使用 digest;Pod 以 UID 2000 运行,SPIRE `ClusterStaticEntry` 同时绑定
+4 -2
View File
@@ -6,8 +6,10 @@ metadata:
spec: spec:
replicas: 1 replicas: 1
strategy: strategy:
type: Recreate type: RollingUpdate
rollingUpdate: null rollingUpdate:
maxSurge: 0
maxUnavailable: 1
selector: selector:
matchLabels: matchLabels:
app.kubernetes.io/name: dynamic-runner-controller app.kubernetes.io/name: dynamic-runner-controller