|
|
|
@@ -344,6 +344,19 @@ public class K8sClientUtil { |
|
|
|
.withImage(image) |
|
|
|
.withPorts(new V1ContainerPort().containerPort(port).protocol("TCP")) |
|
|
|
.withVolumeMounts(new V1VolumeMount().name("workspace").mountPath(mountPath).subPath(subPath)) |
|
|
|
.withNewSecurityContext().withNewPrivileged(true).endSecurityContext() |
|
|
|
.addNewEnv() |
|
|
|
.withName("HTTP_PROXY") |
|
|
|
.withValue("http://172.20.32.253:3128") |
|
|
|
.endEnv() |
|
|
|
.addNewEnv() |
|
|
|
.withName("HTTPS_PROXY") |
|
|
|
.withValue("http://172.20.32.253:3128") |
|
|
|
.endEnv() |
|
|
|
.addNewEnv() |
|
|
|
.withName("NO_PROXY") |
|
|
|
.withValue("localhost,kubernetes.default.svc") |
|
|
|
.endEnv() |
|
|
|
.endContainer() |
|
|
|
.addNewVolume() |
|
|
|
.withName("workspace").withPersistentVolumeClaim(new V1PersistentVolumeClaimVolumeSource().claimName(pvcName)) |
|
|
|
|