apache / apache/openserverless

[OPERATOR] PodDisruptionBudget is deployed even if ETCD has 1 replicas

Ouverte
#120 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
Python
Étoiles
576
Forks
29
Merge moyen
50 min
PR mergées (30 j)
13

Description

- [ ] I have searched the [issues](https://github.com/apache/openserverless/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)

1. Deploy Openserverless with `etcd.config.replicas: 1`
2. 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](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

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

Commencez par deploy/etcd/etcd-policy.yaml et examinez comment l’Operator rend ce manifeste à partir de etcd.config.replicas. Reproduisez le deployment avec une replica et confirmez que le PodDisruptionBudget bloque le drainage du nœud. Le travail est terminé lorsque le PDB est absent pour une replica, tandis que son comportement existant reste inchangé pour un nombre supérieur de replicas.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
kubernetes
Domaine
devops, infrastructure
Type d'issue
Bug
Difficulté
3/5
Temps estimé
1-2 jours
Activité
À l'abandon
Clarté
Plutôt claire
Accessibilité débutants
48/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.