Browse Source

解决BUG

master-fzznrj423
fanshuai 1 year ago
parent
commit
2e5b5f9f9c
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

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



Loading…
Cancel
Save