[OPERATOR] PodDisruptionBudget is deployed even if ETCD has 1 replicas
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 48/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- kubernetes
- 领域
- devops, infrastructure
调研方向
从 deploy/etcd/etcd-policy.yaml 开始,检查 Operator 如何根据 etcd.config.replicas 渲染此清单。使用一个副本重现该 deployment,并确认 PodDisruptionBudget 会阻止节点驱逐。完成标准是:一个副本时不存在 PDB,而副本数更高时其现有行为保持不变。
由索引模型根据 Issue 内容生成。
描述
- I have searched the issues of this repository and believe that this is not a duplicate.
Ⅰ. Issue Description
If we deploy Openserverless with etcd.config.replicas: 1, the Operator still deploys the PodDisruptionBudget (nuvolaris-etcd) resource and this prevents node drains.
Ⅱ. Describe what happened
PodDisruptionBudget (nuvolaris-etcd) resource prevents k8s node drains (and a manual change on PDB resource is required to make the drain go ahead)
Ⅲ. Describe what you expected to happen
PodDisruptionBudget (nuvolaris-etcd) should not be deployed if Openserverless is configured with etcd.config.replicas: 1.
Ⅳ. How to reproduce it (as minimally and precisely as possible)
- Deploy Openserverless with
etcd.config.replicas: 1 - Drain a master node
Minimal yet complete reproducer code (or URL to code):
Ⅴ. Anything else we need to know?
The issue is probabily related to this file:
https://github.com/apache/openserverless-operator/blob/main/deploy/etcd/etcd-policy.yaml
Maybe a condition should manage the deployment (or not) of manifest above.
Ⅵ. Environment:
- K8S Runtime and version: k3s v1.29.3+k3s1
- OPS CLI version: 0.1.0-2409121919.dev
- 主要语言
- Python
- 星标
- 576
- 派生
- 29
- 平均合并
- 51 分钟
- 30 天内合并 PR
- 14
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
apache/openserverless 的其他 Issue
-
help wanted
难度 3/5 1-2 天 新手友好度 45/100
apache/openserverless#252 ·
-
enhancement
难度 5/5 一周以上 新手友好度 25/100
apache/openserverless#215 ·
-
bug
难度 4/5 3-5 天 新手友好度 58/100
apache/openserverless#214 ·
-
bug
难度 4/5 3-5 天 新手友好度 72/100
apache/openserverless#213 ·
-
help wanted
难度 5/5 一周以上 新手友好度 15/100
apache/openserverless#195 ·
查看 apache/openserverless 的全部 Issue
相似的 Issue
-
bug confirmed issue
难度 2/5 1-3 小时 新手友好度 75/100
open-webui/open-webui#30750 · 1 条评论 ·
-
难度 2/5 1-3 小时 新手友好度 75/100
-
enhancement
难度 2/5 1-3 小时 新手友好度 75/100
OpenwaterHealth/openmotion-bloodflow-app#604 · 1 条评论 ·
-
难度 2/5 1-3 小时 新手友好度 70/100
-
good first issue
难度 1/5 1 小时以内 新手友好度 90/100