Create and Modify an Inline Function ​
This tutorial shows how you can create a simple "Hello World" Function in Node.js. The Function's code and dependencies are defined as an inline code in the Function's spec.
Serverless also allows you to store the Function's code and dependencies as sources in a Git repository. To learn more, read how to Create a Git Function. To learn more about Function's signature, event and context objects, and custom HTTP responses the Function returns, read Function’s specification.
NOTE
Read about Istio sidecars in Kyma and why you want them. Then, check how to enable automatic Istio sidecar proxy injection. For more details, see Default Istio setup in Kyma.
Prerequisites ​
- You have the Serverless module added.
- For the Kyma CLI scenario, you have Kyma CLI installed.
Procedure ​
You can create a Function with Kyma dashboard, Kyma CLI, or kubectl: