Override Runtime Image ​
This tutorial shows how to build a custom runtime image and override the Function's base image with it.
Prerequisites ​
Before you start, make sure you have these tools installed:
- Serverless module installed in a cluster
Steps ​
Follow these steps:
- Follow this example to build the Python's custom runtime image.
NOTE: Kyma Serverless enforces a strict Pod and container-level securityContext for all Functions (non-root execution, minimal Linux capabilities, and other hardening defaults). These constraints also apply for Functions with custom runtime image. Make sure that your custom image supports running as a non-root user under the restricted Pod security level (for example: no dependency on root ownership of writable paths, privileged operations, or added capabilities).