[agent-deploy]-甘肃项目
This commit is contained in:
@@ -608,7 +608,7 @@ func (op *CmiiK8sOperator) DeploymentRestartByKill(cmiiEnv, appName string) bool
|
||||
}
|
||||
|
||||
// wait for deployment to be ready
|
||||
check := op.DeploymentStatusCheck(cmiiEnv, appName, 180)
|
||||
check := op.DeploymentStatusCheck(cmiiEnv, appName, 300)
|
||||
if !check {
|
||||
log.ErrorF("[DeploymentRestart] - [%s] [%s] 重启pod启动失败!", podInterface.Namespace, podInterface.Name)
|
||||
return false
|
||||
@@ -634,7 +634,7 @@ func (op *CmiiK8sOperator) DeploymentStatusCheck(cmiiEnv, appName string, waitTi
|
||||
|
||||
// 设置超时时间和时间间隔
|
||||
timeout := time.After(time.Duration(waitTimeOut) * time.Second)
|
||||
tick := time.Tick(time.Second)
|
||||
tick := time.Tick(4 * time.Second)
|
||||
|
||||
// 监控Pod状态
|
||||
for {
|
||||
|
||||
Reference in New Issue
Block a user