New Function Replica is Not Starting ​
Symptom ​
After migration to Serverless 1.9.3, some of the Functions show Running=False condition.
kubectl get function -A
NAMESPACE NAME CONFIGURED RUNNING RUNTIME VERSION AGE
foo function1 True True nodejs22 2 2d
foo function2 True True nodejs22 3 2d
foo function3 True False nodejs22 2 2d
foo function4 True False nodejs22 3 2dCause ​
With Serverless 1.9.3, we introduced buildless mode, which removes the in-cluster image build step. This reduces overall resource usage and speeds up delivery. As a result, dependency resolution (pip install/npm install) now happens at Function Pod startup. During this brief initialization phase, the Pod may require slightly more CPU and memory. If the Function’s resource limits are very low (for example, custom-defined strict memory/CPU limits using resourceConfiguration), the Pod can be OOMKilled by Kubernetes.
Solution ​
To avoid this, increase the resource limits in spec.resourceConfiguration.function or use a larger preset, especially for Functions with multiple or heavy dependencies.
apiVersion: serverless.kyma-project.io/v1alpha2
kind: Function
metadata:
labels:
app.kubernetes.io/name: function3
name: function3
namespace: foo
uid: ...
spec:
...
resourceConfiguration:
function:
resources:
limits:
cpu: 100m # needs increasing
memory: 64Mi
requests:
cpu: 50m # needs increasing
memory: 32MiTo learn how to specify resources per Function, see [Function(../resources/06-10-function-cr.md) To learn how to configure the default resource preset for all Functions, see Configure Serverless