-
Notifications
You must be signed in to change notification settings - Fork 3
/
deployment.yaml
181 lines (181 loc) · 3.21 KB
/
deployment.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
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
apiVersion: "database.arangodb.com/v1alpha"
kind: "ArangoDeployment"
metadata:
name: "single-server"
spec:
mode: Single
---
kind: Service
apiVersion: v1
metadata:
name: arangodb-cluster-exposed
spec:
selector:
arango_deployment: arangodb-cluster
role: coordinator
type: NodePort
ports:
- protocol: TCP
port: 8529
targetPort: 8529
nodePort: 30529
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: sce-solr
labels:
app: sce-solr
spec:
replicas: 1
selector:
matchLabels:
app: sce-solr
template:
metadata:
labels:
app: sce-solr
spec:
containers:
- name: sce-solr
image: registry.gitlab.com/sparkler-crawl-environment/sparkler/solr:memex-dd
command: ['/data/solr/bin/solr','start','-f']
ports:
- name: http
containerPort: 8983
imagePullPolicy: Always
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: sce-firefox
labels:
app: sce-firefox
spec:
replicas: 1
selector:
matchLabels:
app: sce-firefox
template:
metadata:
labels:
app: sce-firefox
spec:
containers:
- name: sce-firefox
image: selenium/standalone-firefox-debug
ports:
- name: http
containerPort: 4444
imagePullPolicy: Always
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: sce-api
labels:
app: sce-api
spec:
replicas: 1
selector:
matchLabels:
app: sce-api
template:
metadata:
labels:
app: sce-api
spec:
containers:
- name: sce-api
image: registry.gitlab.com/sparkler-crawl-environment/memex-dd:memex-dd
env:
- name: WEBDRIVER_URL
value: "http://sce-firefox:4444/wd/hub"
ports:
- name: http
containerPort: 5000
imagePullPolicy: Always
imagePullSecrets:
- name: gitlab-registry
---
apiVersion: v1
kind: Service
metadata:
name: sce-api
spec:
ports:
- name: http
port: 5000
protocol: TCP
targetPort: 5000
selector:
app: sce-api
type: LoadBalancer
---
apiVersion: v1
kind: Service
metadata:
name: sce-firefox
spec:
ports:
- name: http
port: 4444
protocol: TCP
targetPort: 4444
selector:
app: sce-firefox
type: NodePort
---
apiVersion: v1
kind: Service
metadata:
name: sce-solr
spec:
ports:
- name: http
port: 8983
protocol: TCP
targetPort: 8983
selector:
app: sce-solr
type: NodePort
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: sce-ui
labels:
app: sce-ui
spec:
replicas: 1
selector:
matchLabels:
app: sce-ui
template:
metadata:
labels:
app: sce-ui
spec:
containers:
- name: sce-ui
image: registry.gitlab.com/sparkler-crawl-environment/sce-ui:latest
ports:
- name: http
containerPort: 80
imagePullPolicy: Always
imagePullSecrets:
- name: gitlab-registry
---
apiVersion: v1
kind: Service
metadata:
name: sce-ui
spec:
ports:
- name: http
port: 80
protocol: TCP
targetPort: 80
selector:
app: sce-ui
type: NodePort