Skip to content

Commit

Permalink
Fix containers resource requests
Browse files Browse the repository at this point in the history
Typo, missing an `s` from the end of `requests`
  • Loading branch information
hardillb committed Jan 26, 2024
1 parent 546145c commit 03e12e3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions kubernetes.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ const deploymentTemplate = {
containers: [
{
resources: {
request: {
requests: {
// 10th of a core
cpu: '100m',
memory: '128Mi'
Expand Down Expand Up @@ -315,9 +315,9 @@ const createDeployment = async (project, options) => {
}

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

Please sign in to comment.