Skip to content

Commit

Permalink
Adjust FileBrowser resources
Browse files Browse the repository at this point in the history
  • Loading branch information
lucafrancescato authored and giorio94 committed Apr 26, 2021
1 parent 9e4e6a9 commit 32f0a11
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions operators/pkg/instance-controller/container_logic.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,9 +162,18 @@ func buildContainerInstanceDeploymentSpec(
ReadinessProbe: &tigerVncProbe,
},
{
Name: "filebrowser",
Image: o.FileBrowserImg + ":" + o.FileBrowserImgTag,
Resources: buildResRequirements(0.1, 10, resource.MustParse("100Mi")), // actual: ~10MiB
Name: "filebrowser",
Image: o.FileBrowserImg + ":" + o.FileBrowserImgTag,
Resources: v1.ResourceRequirements{
Requests: v1.ResourceList{
"cpu": resource.MustParse(fmt.Sprintf("%f", 0.01)),
"memory": resource.MustParse("100Mi"),
},
Limits: v1.ResourceList{
"cpu": resource.MustParse(fmt.Sprintf("%f", 0.25)),
"memory": resource.MustParse("500Mi"),
},
},
Args: []string{
"--port=" + fmt.Sprintf("%d", fileBrowserPort),
"--root=" + mountPath,
Expand Down

0 comments on commit 32f0a11

Please sign in to comment.