Skip to content

Commit

Permalink
Merge pull request #145 from FlowFuse/change-memory-limits
Browse files Browse the repository at this point in the history
Allow pods to use 128m extra memory for npm
  • Loading branch information
knolleary authored Apr 12, 2024
2 parents 45571e0 + 833b437 commit decf365
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion kubernetes.js
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,8 @@ const createDeployment = async (project, options) => {

if (stack.memory && stack.cpu) {
localPod.spec.containers[0].resources.requests.memory = `${stack.memory}Mi`
localPod.spec.containers[0].resources.limits.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.requests.cpu = `${stack.cpu * 10}m`
localPod.spec.containers[0].resources.limits.cpu = `${stack.cpu * 10}m`
}
Expand Down

0 comments on commit decf365

Please sign in to comment.