Skip to content

Commit 23e4671

Browse files
committed
change worker strategy to rollingUpdate
1 parent c54f2f2 commit 23e4671

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

server/plugins/kubedeploy/deployments.go

+11-1
Original file line numberDiff line numberDiff line change
@@ -670,7 +670,17 @@ func (x *KubeDeploy) doDeploy(e agent.Event) error {
670670
},
671671
}
672672
deployStrategy = v1beta1.DeploymentStrategy{
673-
Type: "Recreate",
673+
Type: v1beta1.RollingUpdateDeploymentStrategyType,
674+
RollingUpdate: &v1beta1.RollingUpdateDeployment{
675+
MaxUnavailable: &intstr.IntOrString{
676+
Type: intstr.String,
677+
StrVal: "30%",
678+
},
679+
MaxSurge: &intstr.IntOrString{
680+
Type: intstr.String,
681+
StrVal: "60%",
682+
},
683+
},
674684
}
675685
}
676686

0 commit comments

Comments
 (0)