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), ...