Skip to content

Commit

Permalink
Merge pull request #118 from lbrlabs/karpenter_limits
Browse files Browse the repository at this point in the history
feat(controller): add resource requests and limits in NewCluster
  • Loading branch information
jaxxstorm authored Jul 5, 2024
2 parents 5ca98b9 + 5d892eb commit cd7ce88
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions provider/pkg/provider/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -1608,6 +1608,18 @@ func NewCluster(ctx *pulumi.Context,
"effect": pulumi.String("NoSchedule"),
},
},
"controller": pulumi.Map{
"resources": pulumi.Map{
"requests": pulumi.Map{
"cpu": pulumi.String("1"),
"memory": pulumi.String("1Gi"),
},
"limits": pulumi.Map{
"cpu": pulumi.String("1"),
"memory": pulumi.String("1Gi"),
},
},
},
"serviceAccount": pulumi.Map{
"create": pulumi.Bool(false),
"name": serviceAccount.Metadata.Name(),
Expand Down

0 comments on commit cd7ce88

Please sign in to comment.