Skip to content

Commit

Permalink
Merge pull request #148 from FlowFuse/hardillb-patch-1
Browse files Browse the repository at this point in the history
Fix memory addition
  • Loading branch information
knolleary authored Apr 12, 2024
2 parents decf365 + e58ae59 commit 8b37a47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kubernetes.js
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ const createDeployment = async (project, options) => {
if (stack.memory && stack.cpu) {
localPod.spec.containers[0].resources.requests.memory = `${stack.memory}Mi`
// increase limit to give npm more room to run in
localPod.spec.containers[0].resources.limits.memory = `${stack.memory + 128}Mi`
localPod.spec.containers[0].resources.limits.memory = `${parseInt(stack.memory) + 128}Mi`
localPod.spec.containers[0].resources.requests.cpu = `${stack.cpu * 10}m`
localPod.spec.containers[0].resources.limits.cpu = `${stack.cpu * 10}m`
}
Expand Down

0 comments on commit 8b37a47

Please sign in to comment.