@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.
Files changed (2) hide show
  1. package/kubernetes.js +3 -3
  2. package/package.json +1 -1
package/kubernetes.js CHANGED
@@ -102,7 +102,7 @@ const deploymentTemplate = {
102
102
  containers: [
103
103
  {
104
104
  resources: {
105
- request: {
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.request.memory = `${stack.memory}Mi`
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.request.cpu = `${stack.cpu * 10}m`
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
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flowfuse/driver-kubernetes",
3
- "version": "2.0.1",
3
+ "version": "2.0.2-0cf4885-202401261504.0",
4
4
  "description": "Kubernetes driver for FlowFuse",
5
5
  "main": "kubernetes.js",
6
6
  "scripts": {