-
Notifications
You must be signed in to change notification settings - Fork 42
/
Copy pathworkflows-env.yaml
133 lines (132 loc) · 2.98 KB
/
workflows-env.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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
# An Kubernetes example template of a Fission Workflow deployment as an environment in Fission
---
# Source: fission-workflows/templates/deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: workflows
namespace: fission
labels:
chart: "fission-workflows-0.6.0"
spec:
replicas: 1
selector:
matchLabels:
app: workflows
template:
metadata:
annotations:
prometheus.io/path: /metrics
prometheus.io/port: "8080"
prometheus.io/scrape: "true"
labels:
svc: workflows
app: workflows
spec:
containers:
- name: workflows
image: "fission/fission-workflows-bundle:0.6.0"
command: ["/fission-workflows-bundle"]
args: [
"--fission",
"--internal",
"--controller",
"--api-http",
"--api-workflow-invocation",
"--api-workflow",
"--api-admin",
"--metrics",
]
env: # TODO add dedicated NATS cluster (instead of reusing the mqtrigger)
- name: FNENV_FISSION_CONTROLLER
value: "http://controller.fission"
- name: FNENV_FISSION_EXECUTOR
value: "http://executor.fission"
- name: jaeger-agent
image: jaegertracing/jaeger-agent
ports:
- containerPort: 5775
protocol: UDP
- containerPort: 6831
protocol: UDP
- containerPort: 6832
protocol: UDP
- containerPort: 5778
protocol: TCP
args: [
"--collector.host-port=jaeger-collector:14267"
]
---
# Expose workflows as a service
apiVersion: v1
kind: Service
metadata:
name: workflows
namespace: fission
labels:
svc: workflows
chart: "fission-workflows-0.6.0"
spec:
type: ClusterIP
selector:
svc: workflows
ports:
- name: http
port: 80
targetPort: 8080
protocol: TCP
- name: grpc
port: 5555
targetPort: 5555
protocol: TCP
---
# Legacy: add 'workflows-apiserver' service for Fission controller
apiVersion: v1
kind: Service
metadata:
name: workflows-apiserver
namespace: fission
labels:
svc: workflows
chart: "fission-workflows-0.6.0"
spec:
type: ClusterIP
selector:
svc: workflows
ports:
- name: http
port: 80
targetPort: 8080
protocol: TCP
- name: grpc
port: 5555
targetPort: 5555
protocol: TCP
---
# Fission integration
apiVersion: fission.io/v1
kind: Environment
metadata:
name: workflows
namespace: default
labels:
chart: "fission-workflows-0.6.0"
spec:
version: 2
TerminationGracePeriod: 5
allowedFunctionsPerContainer: infinite
runtime:
image: "fission/workflows-proxy:0.6.0"
container:
command: ["/fission-workflows-proxy"]
imagePullPolicy: IfNotPresent
args: [
"--test",
"--target", "workflows.fission:5555",
"--port", "8888",
]
builder:
image: "fission/workflow-build-env:0.6.0"
command: "defaultBuild"
container:
imagePullPolicy: IfNotPresent