- Expose a workload
- Expose and secure a workload
- Security
- Cannot connect to a service exposed by an APIRule
- External DNS management
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:
- Kyma installed on a cluster
Steps
Follow these steps:
- Follow this example to build the Python's custom runtime image.
- Kyma CLI
- kubectl
Export these variables:
Click to copyexport NAME={FUNCTION_NAME}export NAMESPACE={FUNCTION_NAMESPACE}export RUNTIME_IMAGE={RUNTIME_IMAGE_WITH_TAG}Create your local development workspace using the built image:
Click to copymkdir {FOLDER_NAME}cd {FOLDER_NAME}kyma init function --name $NAME --namespace $NAMESPACE --runtime-image-override $RUNTIME_IMAGE --runtime python39Deploy your Function:
Click to copykyma apply functionVerify whether your Function is running:
Click to copykubectl get functions $NAME -n $NAMESPACE