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

16 lines
244 B
YAML

service: todo-audit
provider:
name: kubeless
runtime: python3.7
plugins:
- serverless-kubeless
functions:
todo-audit:
handler: audit.handler
events:
- trigger:
queue: nats
topic: events.todo.newitem