-
Notifications
You must be signed in to change notification settings - Fork 5.7k
/
serverless.yml
44 lines (40 loc) · 1.35 KB
/
serverless.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
service: knative
frameworkVersion: '2'
provider:
name: knative
# optional Docker Hub credentials you need if you're using local Dockerfiles as function handlers
docker:
username: ${env:DOCKER_HUB_USERNAME}
password: ${env:DOCKER_HUB_PASSWORD}
functions:
hello:
handler: hello-world.dockerfile
context: ./code
# either use a container image URL for your function `handler` as the commented out `handler`
# below shows or make sure that you update the application code and corresponding Dockerfile
# to process incoming CloudEvents event data when using the event sources listed below
# handler: gcr.io/knative-releases/github.com/knative/eventing-contrib/cmd/event_display:latest
# events:
# - custom:
# filter:
# attributes:
# type: greeting
# - kafka:
# consumerGroup: KAFKA_CONSUMER_GROUP_NAME
# bootstrapServers:
# - server1
# - server2
# topics:
# - my-topic
# - awsSqs:
# secretName: aws-credentials
# secretKey: credentials
# queue: QUEUE_URL
# - gcpPubSub:
# project: knative-hackathon
# topic: foo
# - cron:
# schedule: '* * * * *'
# data: '{"message": "Hello world from a Cron event source!"}'
plugins:
- serverless-knative