@flowfuse/driver-kubernetes 2.0.1 → 2.0.2-0cf4885-202401261504.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/kubernetes.js +3 -3
- package/package.json +1 -1
package/kubernetes.js
CHANGED
|
@@ -102,7 +102,7 @@ const deploymentTemplate = {
|
|
|
102
102
|
containers: [
|
|
103
103
|
{
|
|
104
104
|
resources: {
|
|
105
|
-
|
|
105
|
+
requests: {
|
|
106
106
|
// 10th of a core
|
|
107
107
|
cpu: '100m',
|
|
108
108
|
memory: '128Mi'
|
|
@@ -315,9 +315,9 @@ const createDeployment = async (project, options) => {
|
|
|
315
315
|
}
|
|
316
316
|
|
|
317
317
|
if (stack.memory && stack.cpu) {
|
|
318
|
-
localPod.spec.containers[0].resources.
|
|
318
|
+
localPod.spec.containers[0].resources.requests.memory = `${stack.memory}Mi`
|
|
319
319
|
localPod.spec.containers[0].resources.limits.memory = `${stack.memory}Mi`
|
|
320
|
-
localPod.spec.containers[0].resources.
|
|
320
|
+
localPod.spec.containers[0].resources.requests.cpu = `${stack.cpu * 10}m`
|
|
321
321
|
localPod.spec.containers[0].resources.limits.cpu = `${stack.cpu * 10}m`
|
|
322
322
|
}
|
|
323
323
|
|