如何设置参数AWS ECS更新服务-DeploymentConfiguration_MinimumHealthyPercent XX? [英] how to set the parameter aws ecs update-service -DeploymentConfiguration_MinimumHealthyPercent XX?

查看:17
本文介绍了如何设置参数AWS ECS更新服务-DeploymentConfiguration_MinimumHealthyPercent XX?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有2个文档

1https://docs.aws.amazon.com/powershell/latest/reference/items/Update-ECSService.html

2https://awscli.amazonaws.com/v2/documentation/api/latest/reference/ecs/update-service.html

在第一个文档中,我了解了如何指定参数";-DeploymentConfiguration_MinimumHealthyPercent 50

第二个文档没有告诉我如何操作

此示例有效:

Update-ECSService -Cluster $Cluster -Service $Service -ForceNewDeployment 1 -HealthCheckGracePeriodSecond 1200 -DeploymentConfiguration_MinimumHealthyPercent 50 

如何通过AWS CLI执行相同的操作?

AWS ECS UPDATE-SERVICE--CLUSTER$CLUSTER--SERVICE$SERVICE--FORCE-NEW-DEPLATION--Health-CHECK-GREASE-PERIOD-Second 1200(-DeploymentConfiguration_MinimumHealthyPercent 50?)

您能告诉我如何设置参数吗?

AWS ECS更新-服务-DeploymentConfiguration_MinimumHealthyPercent XX

推荐答案

您可以将minimumHealthyPercent值设置为--deployment-configuration参数的一部分:

aws ecs update-service --cluster $cluster 
--service $service 
--force-new-deployment 
--health-check-grace-period-seconds 1200 
--deployment-configuration "maximumPercent=100,minimumHealthyPercent=50,deploymentCircuitBreaker={enable=boolean,rollback=boolean}"

这篇关于如何设置参数AWS ECS更新服务-DeploymentConfiguration_MinimumHealthyPercent XX?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆