Skip to content

Commit 4edc0ef

Browse files
authored
[installer] Increase rollout speed (#17060)
1 parent cd9e3e8 commit 4edc0ef

File tree

4 files changed

+14
-0
lines changed

4 files changed

+14
-0
lines changed

install/installer/pkg/common/common.go

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -818,3 +818,14 @@ func ExperimentalWebappConfig(ctx *RenderContext) *experimental.WebAppConfig {
818818
func WithLocalWsManager(ctx *RenderContext) bool {
819819
return ctx.Config.Kind == config.InstallationFull
820820
}
821+
822+
func DaemonSetRolloutStrategy() appsv1.DaemonSetUpdateStrategy {
823+
maxUnavailable := intstr.Parse("20%")
824+
825+
return appsv1.DaemonSetUpdateStrategy{
826+
Type: appsv1.RollingUpdateDaemonSetStrategyType,
827+
RollingUpdate: &appsv1.RollingUpdateDaemonSet{
828+
MaxUnavailable: &maxUnavailable,
829+
},
830+
}
831+
}

install/installer/pkg/components/agent-smith/daemonset.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ func daemonset(ctx *common.RenderContext) ([]runtime.Object, error) {
9393
},
9494
},
9595
},
96+
UpdateStrategy: common.DaemonSetRolloutStrategy(),
9697
},
9798
}}, nil
9899
}

install/installer/pkg/components/registry-facade/daemonset.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,7 @@ func daemonset(ctx *common.RenderContext) ([]runtime.Object, error) {
320320
Tolerations: common.GPUToleration(),
321321
},
322322
},
323+
UpdateStrategy: common.DaemonSetRolloutStrategy(),
323324
},
324325
}}, nil
325326
}

install/installer/pkg/components/ws-daemon/daemonset.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,7 @@ func daemonset(ctx *common.RenderContext) ([]runtime.Object, error) {
327327
},
328328
Spec: podSpec,
329329
},
330+
UpdateStrategy: common.DaemonSetRolloutStrategy(),
330331
},
331332
}}, nil
332333
}

0 commit comments

Comments
 (0)