Creation of the service

We will use the create command to create basic services using the passing of runtime and path to create a directory. Currently, two runtimes are provided—one is Python and the other is Node.js. So, if we run the following command with the path parameter, it will create a folder with a simple serverless function. The runtimes currently available are kubeless-python and kubeless-nodejs:

$ serverless create --template kubeless-python --path myKubelessFunc

The create command will create a service, and each service configuration will have the following three files:

  • serverless.yml: The main responsibility of this file is to declare the service, define the provider, custom plugin (in our case, the serverless-kubeless plugin), ...

Get DevOps for Serverless Applications now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.