Skip to content

Commit

Permalink
use default UnhealthyPodEvictionPolicy
Browse files Browse the repository at this point in the history
etcd should use a default UnhealthyPodEvictionPolicy behavior corresponding to the
IfHealthyBudget policy. This policy achieves the least amount of disruption, as it
does not allow eviction when multiple etcd pods do not report readiness.
This can block node drain/maintenance. The cluster administrator should then
 analyze these pods and decide which one to bring down manually.
  • Loading branch information
atiratree committed Nov 30, 2023
1 parent be44bfb commit 647af2f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkg/operator/starter.go
Expand Up @@ -303,6 +303,12 @@ func RunOperator(ctx context.Context, controllerContext *controllercmd.Controlle
"etcd-operator",
"9980",
"readyz",
// etcd should use a default UnhealthyPodEvictionPolicy behavior corresponding to the
// IfHealthyBudget policy. This policy achieves the least amount of disruption, as it
// does not allow eviction when multiple etcd pods do not report readiness.
// This can block node drain/maintenance. The cluster administrator should then
// analyze these pods and decide which one to bring down manually.
nil,
guardRolloutPreCheck,
).
WithOperandPodLabelSelector(labels.Set{"etcd": "true"}.AsSelector()).
Expand Down

0 comments on commit 647af2f

Please sign in to comment.