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