diff --git a/ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/utils/K8sClientUtil.java b/ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/utils/K8sClientUtil.java index a6eaed5f..17d36177 100644 --- a/ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/utils/K8sClientUtil.java +++ b/ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/utils/K8sClientUtil.java @@ -39,6 +39,8 @@ public class K8sClientUtil { @Value("${jupyter.hostPath}") private String hostPath; + @Value("${dockerpush.proxyUrl}") + private String proxyUrl; private String http; private String token; @@ -360,11 +362,11 @@ public class K8sClientUtil { .withNewSecurityContext().withNewPrivileged(true).endSecurityContext() .addNewEnv() .withName("HTTP_PROXY") - .withValue("http://172.20.32.253:3128") + .withValue(proxyUrl) .endEnv() .addNewEnv() .withName("HTTPS_PROXY") - .withValue("http://172.20.32.253:3128") + .withValue(proxyUrl) .endEnv() .addNewEnv() .withName("NO_PROXY")