An imperative scale left kubectl owning the replica count while GitOps still declared one, causing apply conflicts. Declare two replicas so DNS remains available across a node failure and GitOps can reconcile the intended count.
This commit is contained in:
1 parent
ad054bc74e
commit
86a83302b6
1 file changed
+2
-1
@@ -15,7 +15,8 @@ spec:
|
|||||||
# across a reschedule). The flip side: the HPA does not work on a StatefulSet — the
|
# across a reschedule). The flip side: the HPA does not work on a StatefulSet — the
|
||||||
# controller and the autoscaler fight over the replica count — so scaling
|
# controller and the autoscaler fight over the replica count — so scaling
|
||||||
# means adding nodes and replicas here, not CPU targets.
|
# means adding nodes and replicas here, not CPU targets.
|
||||||
replicas: 1
|
# Keep DNS available if a node disappears and its pod cannot terminate.
|
||||||
|
replicas: 2
|
||||||
podManagementPolicy: Parallel
|
podManagementPolicy: Parallel
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
|
|||||||
Reference in new issue
Block a user