Commit 6a1fe51c authored by 黎博's avatar 黎博

修改下/service/modify接口

parent 46fd81d5
......@@ -179,8 +179,16 @@ public class K8sController {
}
}
}
Service service = tkeService.getServiceDetail(namespace, serviceName);
if (service == null) {
// 创建或替换Service
tkeService.createServiceByYaml(serviceCreateVo);
try {
Thread.sleep(3000);
} catch (InterruptedException e) {
e.printStackTrace();
}
}
// 创建或替换Deployment
tkeService.createDeploymentByYaml(serviceCreateVo);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment