Browse Source

优化

dev-credits
chenzhihang 11 months ago
parent
commit
e78ad71de5
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/utils/K8sClientUtil.java

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

@@ -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")


Loading…
Cancel
Save