Skip to content

Commit

Permalink
Merge pull request #119 from FlowFuse/expose_limits
Browse files Browse the repository at this point in the history
Expose mem/cpu limits
  • Loading branch information
hardillb authored Oct 18, 2023
2 parents 9d9ae89 + 2448a3a commit 951cdc3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions kubernetes.js
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,12 @@ const createDeployment = async (project, options) => {
if (this._app.license.active()) {
localPod.spec.containers[0].env.push({ name: 'FORGE_LICENSE_TYPE', value: 'ee' })
}
if (stack.memory) {
localPod.spec.containers[0].env.push({ name: 'FORGE_MEMORY_LIMIT', value: stack.memory })
}
if (stack.cpu) {
localPod.spec.containers[0].env.push({ name: 'FORGE_CPU_LIMIT', value: stack.cpu })
}

const credentialSecret = await project.getSetting('credentialSecret')
if (credentialSecret) {
Expand Down

0 comments on commit 951cdc3

Please sign in to comment.