Browse Source

Merge branch 'dev' of https://gitlink.org.cn/ci4s/ci4sManagement-cloud into optimus

pull/16/head
liuchen 1 year ago
parent
commit
ac6a44fcbd
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/utils/K8sClientUtil.java

+ 2
- 2
ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/utils/K8sClientUtil.java View File

@@ -338,7 +338,7 @@ public class K8sClientUtil {
.withName(podName) .withName(podName)
.withLabels(selector) .withLabels(selector)
.endMetadata() .endMetadata()
.withNewSpec().withSchedulerName("0 */1 * * *")//默认不被操作4小时后删除
.withNewSpec()
.addNewContainer() .addNewContainer()
.withName(podName) .withName(podName)
.withImage(image) .withImage(image)
@@ -348,7 +348,7 @@ public class K8sClientUtil {
.addNewVolume() .addNewVolume()
.withName("workspace").withPersistentVolumeClaim(new V1PersistentVolumeClaimVolumeSource().claimName(pvcName)) .withName("workspace").withPersistentVolumeClaim(new V1PersistentVolumeClaimVolumeSource().claimName(pvcName))
.endVolume() .endVolume()
// .withTerminationGracePeriodSeconds(14400L)
.withTerminationGracePeriodSeconds(14400L)
.endSpec() .endSpec()
.build(); .build();




Loading…
Cancel
Save