From 268c23fa4daf73a39bad14671197fb4dd85a169a Mon Sep 17 00:00:00 2001 From: Andy Meier Date: Thu, 9 Apr 2026 18:50:33 -0400 Subject: [PATCH] add cpu/memory resources to deployment containers --- pulumi/src/k8s/deployment.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pulumi/src/k8s/deployment.ts b/pulumi/src/k8s/deployment.ts index 6765d9b..aa47b3d 100644 --- a/pulumi/src/k8s/deployment.ts +++ b/pulumi/src/k8s/deployment.ts @@ -62,6 +62,10 @@ const deployment = new k8s.apps.v1.Deployment(config.identifier, { securityContext: containerSecurityContext, imagePullPolicy: 'IfNotPresent', envFrom: [ { configMapRef: { name: appConfigMap.metadata.name } } ], + resources: { + requests: { cpu: '25m', memory: '64Mi' }, + limits: { cpu: '250m', memory: '256Mi' }, + }, livenessProbe: { httpGet: { path: '/health', @@ -87,6 +91,10 @@ const deployment = new k8s.apps.v1.Deployment(config.identifier, { 'run' ], envFrom: [{ secretRef: { name: cloudflaredSecret.metadata.name } }], + resources: { + requests: { cpu: '10m', memory: '32Mi' }, + limits: { cpu: '100m', memory: '128Mi' }, + }, livenessProbe: { httpGet: { path: '/ready', port: 2000 }, failureThreshold: 1,