Skip to content

Commit

Permalink
🐛 ta-data 마운트 임시 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
Yanghyeondong committed Jul 8, 2024
1 parent dabcdb7 commit bdf890b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ public String createDeploy(String deployName,
.addToRequests("cpu", new Quantity(cpuReq))
// .addToLimits("cpu", new Quantity(cpuLimit))
.addToRequests("memory", new Quantity(memReq)) // RAM request
// .addToLimits("memory", new Quantity(memLimit)) // RAM limit
.addToLimits("memory", new Quantity(memLimit)) // RAM limit
.build())
.withVolumeMounts(volumeMounts)
.withCommand(command)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -210,15 +210,15 @@ private void createDeploy(String className, String studentId, Map<String, String
publicVolume.put("pvPath", pvHostPath+"/"+pvTaPath+"/"+className);
publicVolume.put("mountPath", "/home/"+studentId+"-"+className+"/"+className);
publicVolume.put("isReadOnly", "false");
volumes.put("ta-data", publicVolume);
// volumes.put("ta-data", publicVolume);
}
else {
// student용 수정 불가능 ta폴더
Map<String, String> publicVolume = new HashMap<>();
publicVolume.put("pvPath", pvHostPath+"/"+pvTaPath+"/"+className);
publicVolume.put("mountPath", "/home/"+studentId+"-"+className+"/"+className);
publicVolume.put("isReadOnly", "true");
volumes.put("ta-data", publicVolume);
// volumes.put("ta-data", publicVolume);

// student용 수정 가능 student폴더
Map<String, String> privateVolume = new HashMap<>();
Expand Down

0 comments on commit bdf890b

Please sign in to comment.