Skip to content

Commit c5d4221

Browse files
committed
Fix max unavailable (#3149)
* 统一 ovs ovn maxUnavailable Signed-off-by: bobz965 <zhangbingbing2_yewu@cmss.chinamobile.com>
1 parent 5d07211 commit c5d4221

File tree

4 files changed

+18
-9
lines changed

4 files changed

+18
-9
lines changed

charts/templates/ovn-dpdk-ds.yaml

+4-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@ spec:
1212
matchLabels:
1313
app: ovs-dpdk
1414
updateStrategy:
15-
type: OnDelete
15+
type: RollingUpdate
16+
rollingUpdate:
17+
maxSurge: 1
18+
maxUnavailable: 0
1619
template:
1720
metadata:
1821
labels:

dist/images/install.sh

+7-4
Original file line numberDiff line numberDiff line change
@@ -3329,13 +3329,16 @@ metadata:
33293329
spec:
33303330
selector:
33313331
matchLabels:
3332-
app: ovs
3332+
app: ovs-dpdk
33333333
updateStrategy:
3334-
type: OnDelete
3334+
type: RollingUpdate
3335+
rollingUpdate:
3336+
maxSurge: 1
3337+
maxUnavailable: 0
33353338
template:
33363339
metadata:
33373340
labels:
3338-
app: ovs
3341+
app: ovs-dpdk
33393342
component: network
33403343
type: infra
33413344
spec:
@@ -3495,7 +3498,7 @@ spec:
34953498
updateStrategy:
34963499
type: RollingUpdate
34973500
rollingUpdate:
3498-
maxSurge: 100%
3501+
maxSurge: 1
34993502
maxUnavailable: 0
35003503
template:
35013504
metadata:

yamls/ovn-dpdk.yaml

+6-3
Original file line numberDiff line numberDiff line change
@@ -315,13 +315,16 @@ metadata:
315315
spec:
316316
selector:
317317
matchLabels:
318-
app: ovs
318+
app: ovs-dpdk
319319
updateStrategy:
320-
type: OnDelete
320+
type: RollingUpdate
321+
rollingUpdate:
322+
maxSurge: 1
323+
maxUnavailable: 0
321324
template:
322325
metadata:
323326
labels:
324-
app: ovs
327+
app: ovs-dpdk
325328
component: network
326329
type: infra
327330
spec:

yamls/ovn-ha.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ spec:
219219
updateStrategy:
220220
type: RollingUpdate
221221
rollingUpdate:
222-
maxSurge: 100%
222+
maxSurge: 1
223223
maxUnavailable: 0
224224
template:
225225
metadata:

0 commit comments

Comments
 (0)