Skip to content

Commit

Permalink
Default CPU request value (#24)
Browse files Browse the repository at this point in the history
Set a default CPU Request value for controller managed objects - NATS,
Broker, HTTPSrv
  • Loading branch information
BoLB23 authored Dec 24, 2023
1 parent 75ad8d5 commit 81f399f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions components/operator/controller/defaults.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ var (
Resources: &v1.ResourceRequirements{
Requests: v1.ResourceList{
"memory": resource.MustParse("64Mi"),
"cpu": resource.MustParse("100m"),
},
Limits: v1.ResourceList{
"memory": resource.MustParse("128Mi"),
Expand Down Expand Up @@ -56,6 +57,7 @@ var (
Resources: &v1.ResourceRequirements{
Requests: v1.ResourceList{
"memory": resource.MustParse("64Mi"), // 90% of limit, used to set GOMEMLIMIT
"cpu": resource.MustParse("100m"),
},
Limits: v1.ResourceList{
"memory": resource.MustParse("160Mi"),
Expand All @@ -82,6 +84,7 @@ var (
Resources: &v1.ResourceRequirements{
Requests: v1.ResourceList{
"memory": resource.MustParse("64Mi"),
"cpu": resource.MustParse("100m"),
},
Limits: v1.ResourceList{
"memory": resource.MustParse("160Mi"),
Expand Down

0 comments on commit 81f399f

Please sign in to comment.