diff --git a/k8s/deployment.yaml b/k8s/deployment.yaml index c94adf6..b1ed75e 100644 --- a/k8s/deployment.yaml +++ b/k8s/deployment.yaml @@ -32,6 +32,9 @@ spec: - containerPort: 3000 name: http protocol: TCP + env: + - name: NODE_OPTIONS + value: "--max-old-space-size=1536" envFrom: - secretRef: name: litellm-config @@ -48,9 +51,9 @@ spec: scheme: HTTP initialDelaySeconds: 2 periodSeconds: 2 - timeoutSeconds: 2 + timeoutSeconds: 5 successThreshold: 1 - failureThreshold: 2 + failureThreshold: 3 livenessProbe: httpGet: path: /api/health @@ -58,13 +61,13 @@ spec: scheme: HTTP initialDelaySeconds: 10 periodSeconds: 10 - timeoutSeconds: 2 + timeoutSeconds: 5 successThreshold: 1 - failureThreshold: 3 + failureThreshold: 4 resources: limits: - cpu: 500m - memory: 512Mi + cpu: 2000m + memory: 2Gi requests: - cpu: 50m - memory: 64Mi + cpu: 100m + memory: 128Mi