[agent-deploy]-甘肃项目

This commit is contained in:
zeaslity
2024-12-06 17:37:59 +08:00
parent 8f5f85826c
commit 5a3c53969c
10 changed files with 159 additions and 30 deletions

View File

@@ -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 {