forked from openfaas/faas-netes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
faas.yml
80 lines (79 loc) · 1.5 KB
/
faas.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
apiVersion: v1
kind: Service
metadata:
name: faas-netesd
labels:
app: faas-netesd
spec:
type: NodePort
ports:
- port: 8080
protocol: TCP
targetPort: 8080
nodePort: 31111
selector:
app: faas-netesd
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: faas-controller
---
apiVersion: apps/v1beta1 # for versions before 1.6.0 use extensions/v1beta1
kind: Deployment
metadata:
name: faas-netesd
spec:
replicas: 1
template:
metadata:
labels:
app: faas-netesd
spec:
serviceAccountName: faas-controller
containers:
- name: faas-netesd
image: functions/faas-netesd:0.3-alpha6
imagePullPolicy: Always
ports:
- containerPort: 8080
protocol: TCP
---
apiVersion: v1
kind: Service
metadata:
name: gateway
labels:
app: gateway
spec:
type: NodePort
ports:
- port: 8080
protocol: TCP
targetPort: 8080
nodePort: 31112
selector:
app: gateway
---
apiVersion: apps/v1beta1 # for versions before 1.6.0 use extensions/v1beta1
kind: Deployment
metadata:
name: gateway
spec:
replicas: 1
template:
metadata:
labels:
app: gateway
spec:
containers:
- name: gateway
image: functions/gateway:0.6.6-beta
#k8s-monitoring-dev
imagePullPolicy: Always
env:
- name: functions_provider_url
value: "http://faas-netesd.default.svc.cluster.local:8080/"
ports:
- containerPort: 8080
protocol: TCP