Skip to content

Commit

Permalink
Change deployment strategy to Recreate (#201)
Browse files Browse the repository at this point in the history
Dealing with leader elections forces us to start to play with maxUnavailable and friends
we are good we a simple Recreate.

Signed-off-by: Quique Llorente <[email protected]>
  • Loading branch information
qinqon authored Jun 17, 2020
1 parent 17cdf0a commit 15dba19
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions config/default/manager/manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ metadata:
control-plane: mac-controller-manager
controller-tools.k8s.io: "1.0"
spec:
strategy:
type: Recreate
replicas: 2
selector:
matchLabels:
Expand Down
2 changes: 2 additions & 0 deletions config/release/kubemacpool.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,8 @@ spec:
matchLabels:
control-plane: mac-controller-manager
controller-tools.k8s.io: "1.0"
strategy:
type: Recreate
template:
metadata:
labels:
Expand Down
2 changes: 2 additions & 0 deletions config/test/kubemacpool.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,8 @@ spec:
matchLabels:
control-plane: mac-controller-manager
controller-tools.k8s.io: "1.0"
strategy:
type: Recreate
template:
metadata:
labels:
Expand Down

0 comments on commit 15dba19

Please sign in to comment.