Merge branch 'dev' of https://gitlink.org.cn/ci4s/ci4sManagement-cloud into optimus
This commit is contained in:
commit
ac6a44fcbd
|
@ -338,7 +338,7 @@ public class K8sClientUtil {
|
|||
.withName(podName)
|
||||
.withLabels(selector)
|
||||
.endMetadata()
|
||||
.withNewSpec().withSchedulerName("0 */1 * * *")//默认不被操作4小时后删除
|
||||
.withNewSpec()
|
||||
.addNewContainer()
|
||||
.withName(podName)
|
||||
.withImage(image)
|
||||
|
@ -348,7 +348,7 @@ public class K8sClientUtil {
|
|||
.addNewVolume()
|
||||
.withName("workspace").withPersistentVolumeClaim(new V1PersistentVolumeClaimVolumeSource().claimName(pvcName))
|
||||
.endVolume()
|
||||
// .withTerminationGracePeriodSeconds(14400L)
|
||||
.withTerminationGracePeriodSeconds(14400L)
|
||||
.endSpec()
|
||||
.build();
|
||||
|
||||
|
|
Loading…
Reference in New Issue