|
|
|
@@ -68,7 +68,7 @@ public class TensorBoardServiceImpl implements TensorBoardService { |
|
|
|
LoginUser loginUser = SecurityUtils.getLoginUser(); |
|
|
|
String podName = loginUser.getUsername().toLowerCase()+"-"+frameLogPathVo.getPath().split("/")[2]+ "-tensorboard-pod"; |
|
|
|
|
|
|
|
Integer podPort = k8sClientUtil.createPodWithSubPath(podName, StringUtils.isEmpty(frameLogPathVo.getNamespace()) ? "default" : frameLogPathVo.getNamespace(), port, mountPath, frameLogPathVo.getPath(), frameLogPathVo.getPvcName(), image); |
|
|
|
Integer podPort = k8sClientUtil.createPodWithSubPath(podName, StringUtils.isEmpty(frameLogPathVo.getNamespace()) ? "default" : frameLogPathVo.getNamespace(), port, mountPath, frameLogPathVo.getPath(), image); |
|
|
|
redisService.setCacheObject(podName, masterIp + ":" + podPort); |
|
|
|
return masterIp + ":" + podPort; |
|
|
|
} |
|
|
|
|