kubernetes: make the terminating-pod policy configurable in pods mode
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 53/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- elixir, kubernetes
- Ambito
- distributed-systems
Direzione di ricerca
Start by reading the Kubernetes strategy code for pods mode and the change associated with issue #114, which introduced the current terminating-pod behavior. Trace how pod deletion timestamps and running state affect discovery, then check the strategy tests and configuration documentation. Done means an opt-in :include setting keeps running terminating pods visible while the default :exclude behavior remains unchanged.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Steps to reproduce
- Configuration Used:
Cluster.Strategy.Kuberneteswithkubernetes_ip_lookup_mode: :pods. - Strategy Used:
Cluster.Strategy.Kubernetes(pods mode). - Errors/Incorrect Behaviour Encountered: the terminating-pod policy is fixed. 3.6.0 excludes pods with a
metadata.deletionTimestamp, which is the right default for deployments that want an unreachable target removed quickly.
Description of issue
This is an improvement request, not a bug: make the terminating-pod policy configurable in pods mode, keeping 3.6.0 as the default. 3.6.0 introduced the current behavior to address #114, but it also removed the ability to express the opposite case.
The use case is a distributed application where a node has to stay reachable while it shuts down. Process groups are one example: if a node leaves discovery as soon as its pod is marked for deletion, it can disappear from :pg before it has finished draining, and peers may start replacement processes while the old ones are still unwinding. Other examples are a node handing off a lease, or a supervised job it owns, before it goes away.
Today there is no way to keep that node visible: pods mode removes it, and endpoints and EndpointSlice modes drop terminating endpoints too. A field selector can't express it either, because a terminating pod keeps phase: Running and metadata.deletionTimestamp is not a selectable field.
Would an opt-in option be acceptable?
kubernetes_pod_terminating: :exclude | :include
:exclude(default): current behavior, remove a pod as soon as it has adeletionTimestamp.:include: keep it until it is no longerRunning, which is what a draining node needs.
The documentation is correct for the default; this would add an option instead of changing behavior.
- Lingua principale
- Elixir
- Stelle
- 2.2k
- Fork
- 202
- Merge medio
- 2m
- PR unite (30g)
- 1
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di bitwalker/libcluster
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
bitwalker/libcluster#223 ·
-
feature
Difficoltà 3/5 1-2 giorni Idoneità per principianti 38/100
bitwalker/libcluster#191 · 1 commento ·
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
bitwalker/libcluster#139 · 3 commenti · 8 reazioni ·
Tutte le issue di bitwalker/libcluster
Issue simili
-
Heavy legs 1.12–1.17: compiler corpus goldens not regenerated for #4770Forse già presa Una pull request collegata a questa issue è aperta o già unita. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
intellij-elixir/intellij-elixir#4782 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
hexlet-codebattle/codebattle#2376 ·
-
level 2 wocs
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
phravins/QuantumBilling#51 ·
-
fix(ocr): compile the Tesseract-free pipeline with Tokio runtimeForse già presa @Goldziher l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
carverauto/serviceradar#6898 ·
I maintainer di solito rispondono entro 1 giorno