Skip to content

Commit

Permalink
feat(stacks.api/addons/arc): adjust dind resources, fix missing runne…
Browse files Browse the repository at this point in the history
…r resources

Signed-off-by: Braden Mars <bradenmars@bradenmars.me>
  • Loading branch information
BradenM committed Sep 22, 2023
1 parent 5e57cea commit bf36208
Showing 1 changed file with 20 additions and 7 deletions.
27 changes: 20 additions & 7 deletions packages/stacks/api/src/addons/arc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ export class ARCScaleSet extends blueprints.HelmAddOn {
name: ScaleSetContainer.DIND,
image: dindImage,
imagePullPolicy: 'IfNotPresent',
resources: this.containerResources,
resources: this.containerResources.dind,
securityContext: {
privileged: true,
},
Expand Down Expand Up @@ -362,13 +362,25 @@ export class ARCScaleSet extends blueprints.HelmAddOn {

protected get containerResources() {
return {
limits: {
cpu: '2.0',
memory: '4Gi',
runner: {
limits: {
cpu: '50m',
memory: '300Mi',
},
requests: {
cpu: '20m',
memory: '210Mi',
},
},
requests: {
cpu: '1.0',
memory: '1Gi',
dind: {
limits: {
cpu: '3.0',
memory: '4Gi',
},
requests: {
cpu: '1.0',
memory: '2Gi',
},
},
}
}
Expand Down Expand Up @@ -471,6 +483,7 @@ export class ARCScaleSet extends blueprints.HelmAddOn {
name: ScaleSetContainer.RUNNER,
image: runnerImage,
imagePullPolicy: 'IfNotPresent',
resources: this.containerResources.runner,
command: this.options.useDindRunner
? ['bash', '-c', dindCommand.join(' && ')]
: ['/home/runner/run.sh'],
Expand Down

0 comments on commit bf36208

Please sign in to comment.