Fix pangolin-controller rollout by using Recreate strategy
The controller uses leader election with replicas=1. During RollingUpdate, the new pod cannot acquire the leader lease (old pod holds it) and fails health checks, causing indefinite restart loops. Recreate strategy ensures the old pod terminates before the new one starts, allowing clean leader election transitions. Fixes: DEV-442 Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
parent
ab2856f4a4
commit
fbdd757052
1 changed files with 2 additions and 0 deletions
|
|
@ -8,6 +8,8 @@ metadata:
|
|||
component: controller
|
||||
spec:
|
||||
replicas: 1
|
||||
strategy:
|
||||
type: Recreate
|
||||
selector:
|
||||
matchLabels:
|
||||
app: pangolin-controller
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue