Skip to content

Commit

Permalink
feat: Add limits for Operator
Browse files Browse the repository at this point in the history
  • Loading branch information
flemzord committed Jan 17, 2024
1 parent ebd1015 commit 6b91f29
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions controllers/castopod/castopod_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -227,11 +227,10 @@ func (r *CastopodMutator) reconcileDeploymentForApp(ctx context.Context, config
Resources: corev1.ResourceRequirements{
Requests: corev1.ResourceList{
corev1.ResourceCPU: *resource.NewMilliQuantity(100, resource.DecimalSI),
corev1.ResourceMemory: *resource.NewMilliQuantity(256, resource.DecimalSI),
corev1.ResourceMemory: *resource.NewMilliQuantity(512, resource.DecimalSI),
},
Limits: corev1.ResourceList{
corev1.ResourceCPU: *resource.NewMilliQuantity(1000, resource.DecimalSI),
corev1.ResourceMemory: *resource.NewMilliQuantity(1024, resource.DecimalSI),
corev1.ResourceCPU: *resource.NewMilliQuantity(500, resource.DecimalSI),
},
},
},
Expand Down

0 comments on commit 6b91f29

Please sign in to comment.