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:
CTO Agent 2026-08-02 13:41:25 +00:00
parent ab2856f4a4
commit fbdd757052

View file

@ -8,6 +8,8 @@ metadata:
component: controller
spec:
replicas: 1
strategy:
type: Recreate
selector:
matchLabels:
app: pangolin-controller