-
Notifications
You must be signed in to change notification settings - Fork 80
/
Copy pathce-coffee-resources.yaml
62 lines (62 loc) · 1.38 KB
/
ce-coffee-resources.yaml
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
apiVersion: serverless.kyma-project.io/v1alpha1
kind: Function
metadata:
labels:
app.kubernetes.io/name: ce-coffee
name: ce-coffee
namespace: default
spec:
buildResources: {}
deps: |-
{
"name": "ce-coffee",
"version": "0.0.1",
"dependencies": {}
}
maxReplicas: 1
minReplicas: 1
resources:
limits:
cpu: 100m
memory: 128Mi
requests:
cpu: 50m
memory: 64Mi
runtime: nodejs14
source: "module.exports = {\n main: function (event) {\n\t console.log(event);\n
\ return 'Hello ce-coffee';\n }\n}"
---
apiVersion: eventing.kyma-project.io/v1alpha1
kind: Subscription
metadata:
name: ce-coffee
namespace: default
spec:
filter:
filters:
- eventSource:
property: source
type: exact
value: ""
eventType:
property: type
type: exact
value: sap.kyma.custom.commerce.coffee.required.v1
- eventSource:
property: source
type: exact
value: ""
eventType:
property: type
type: exact
value: sap.kyma.custom.commerce.coffee.produced.v1
- eventSource:
property: source
type: exact
value: ""
eventType:
property: type
type: exact
value: sap.kyma.custom.commerce.coffee.consumed.v1
protocolsettings: {}
sink: http://ce-coffee.default.svc.cluster.local