-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfunction.yaml
48 lines (46 loc) · 980 Bytes
/
function.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
apiVersion: serverless.kyma-project.io/v1alpha1
kind: Function
metadata:
name: test-fn
spec:
buildResources:
limits:
cpu: 1100m
memory: 1100Mi
requests:
cpu: 700m
memory: 700Mi
deps: "{ \n \"name\": \"hilly-road\",\n \"version\": \"1.0.0\",\n \"dependencies\":
{}\n}"
maxReplicas: 1
minReplicas: 1
resources:
limits:
cpu: 100m
memory: 128Mi
requests:
cpu: 50m
memory: 64Mi
runtime: nodejs12
source: "module.exports = { \n main: function (event, context) {\n return \"Hello
World!\";\n }\n}"
---
apiVersion: networking.istio.io/v1beta1
kind: VirtualService
metadata:
name: vs-func
spec:
gateways:
- kyma-gateway.kyma-system.svc.cluster.local
hosts:
- test.aj-ser1.cf-kyma-k8.shoot.canary.k8s-hana.ondemand.com
http:
- match:
- uri:
regex: /.*
route:
- destination:
host: test-fn
port:
number: 80
weight: 100