kubernetes-yaml/learn/learn-kubernetes-master/kiamol/ch21/serverless/todo-api/serverless.yml

17 lines
281 B
YAML
Raw Permalink Normal View History

service: todo-api
provider:
name: kubeless
runtime: nodejs12
hostname: api.todo.kiamol.local
plugins:
- serverless-kubeless
functions:
todo-api:
description: 'ToDo list - create item API'
handler: server.handler
events:
- http:
path: /todos