|
1 | 1 | # To execute this yml file use this command in your local kubernetes environment `kubectl apply -f k8s-deployment-full-grid.yaml`
|
2 | 2 | #***************************************
|
3 |
| -#SELENIUM ROUTER |
4 |
| -#*************************************** |
5 |
| -apiVersion: v1 |
6 |
| -kind: Service |
7 |
| -metadata: |
8 |
| - name: selenium-router |
9 |
| - labels: |
10 |
| - name: selenium-router |
11 |
| - component: "selenium-grid-4" |
12 |
| -spec: |
13 |
| - selector: |
14 |
| - app: selenium-router |
15 |
| - ports: |
16 |
| - - name: web |
17 |
| - protocol: TCP |
18 |
| - port: 4444 |
19 |
| - targetPort: 4444 |
20 |
| - |
21 |
| ---- |
22 |
| -apiVersion: apps/v1 |
23 |
| -kind: Deployment |
24 |
| -metadata: |
25 |
| - name: selenium-router-deployment |
26 |
| - labels: |
27 |
| - app: selenium-router |
28 |
| - name: selenium-router |
29 |
| - component: "selenium-grid-4" |
30 |
| -spec: |
31 |
| - replicas: 1 |
32 |
| - selector: |
33 |
| - matchLabels: |
34 |
| - app: selenium-router |
35 |
| - template: |
36 |
| - metadata: |
37 |
| - labels: |
38 |
| - app: selenium-router |
39 |
| - name: selenium-router |
40 |
| - component: "selenium-grid-4" |
41 |
| - spec: |
42 |
| - containers: |
43 |
| - - name: selenium-router |
44 |
| - image: selenium/router:4.0.0-alpha-7-20201119 |
45 |
| - env: |
46 |
| - - name: SE_DISTRIBUTOR_HOST |
47 |
| - value: "selenium-distributor" |
48 |
| - - name: SE_DISTRIBUTOR_PORT |
49 |
| - value: "5553" |
50 |
| - - name: SE_SESSIONS_MAP_HOST |
51 |
| - value: "selenium-sessions" |
52 |
| - - name: SE_SESSIONS_MAP_PORT |
53 |
| - value: "5556" |
54 |
| - ports: |
55 |
| - - containerPort: 4444 |
56 |
| - protocol: TCP |
57 |
| ---- |
58 |
| -#*************************************** |
59 | 3 | #SELENIUM EVENT BUS
|
60 | 4 | #***************************************
|
61 | 5 | apiVersion: v1
|
@@ -169,6 +113,59 @@ spec:
|
169 | 113 | protocol: TCP
|
170 | 114 | ---
|
171 | 115 | #***************************************
|
| 116 | +#SELENIUM SESSION QUEUER |
| 117 | +#*************************************** |
| 118 | +apiVersion: v1 |
| 119 | +kind: Service |
| 120 | +metadata: |
| 121 | + name: selenium-session-queuer |
| 122 | + labels: |
| 123 | + name: selenium-session-queuer |
| 124 | + component: "selenium-grid-4" |
| 125 | +spec: |
| 126 | + selector: |
| 127 | + app: selenium-session-queuer |
| 128 | + ports: |
| 129 | + - name: port1 |
| 130 | + protocol: TCP |
| 131 | + port: 5559 |
| 132 | + targetPort: 55569 |
| 133 | +--- |
| 134 | +apiVersion: apps/v1 |
| 135 | +kind: Deployment |
| 136 | +metadata: |
| 137 | + name: selenium-session-queuer-deployment |
| 138 | + labels: |
| 139 | + app: selenium-session-queuer |
| 140 | + name: selenium-session-queuer |
| 141 | + component: "selenium-grid-4" |
| 142 | +spec: |
| 143 | + replicas: 1 |
| 144 | + selector: |
| 145 | + matchLabels: |
| 146 | + app: selenium-session-queuer |
| 147 | + template: |
| 148 | + metadata: |
| 149 | + labels: |
| 150 | + app: selenium-session-queuer |
| 151 | + name: selenium-session-queuer |
| 152 | + component: "selenium-grid-4" |
| 153 | + spec: |
| 154 | + containers: |
| 155 | + - name: selenium-session-queuer |
| 156 | + image: selenium/session-queuer:4.0.0-alpha-7-20201119 |
| 157 | + env: |
| 158 | + - name: SE_EVENT_BUS_HOST |
| 159 | + value: "selenium-event-bus" |
| 160 | + - name: SE_EVENT_BUS_PUBLISH_PORT |
| 161 | + value: "4442" |
| 162 | + - name: SE_EVENT_BUS_SUBSCRIBE_PORT |
| 163 | + value: "4443" |
| 164 | + ports: |
| 165 | + - containerPort: 5556 |
| 166 | + protocol: TCP |
| 167 | +--- |
| 168 | +#*************************************** |
172 | 169 | #SELENIUM DISTRIBUTOR
|
173 | 170 | #***************************************
|
174 | 171 | apiVersion: v1
|
@@ -222,11 +219,75 @@ spec:
|
222 | 219 | value: "selenium-sessions"
|
223 | 220 | - name: SE_SESSIONS_MAP_PORT
|
224 | 221 | value: "5556"
|
| 222 | + - name: SE_SESSION_QUEUER_HOST |
| 223 | + value: "selenium-session-queuer" |
| 224 | + - name: SE_SESSION_QUEUER_PORT |
| 225 | + value: "5559" |
225 | 226 | ports:
|
226 | 227 | - containerPort: 5553
|
227 | 228 | protocol: TCP
|
228 | 229 | ---
|
229 | 230 | #***************************************
|
| 231 | +#SELENIUM ROUTER |
| 232 | +#*************************************** |
| 233 | +apiVersion: v1 |
| 234 | +kind: Service |
| 235 | +metadata: |
| 236 | + name: selenium-router |
| 237 | + labels: |
| 238 | + name: selenium-router |
| 239 | + component: "selenium-grid-4" |
| 240 | +spec: |
| 241 | + selector: |
| 242 | + app: selenium-router |
| 243 | + ports: |
| 244 | + - name: web |
| 245 | + protocol: TCP |
| 246 | + port: 4444 |
| 247 | + targetPort: 4444 |
| 248 | + |
| 249 | +--- |
| 250 | +apiVersion: apps/v1 |
| 251 | +kind: Deployment |
| 252 | +metadata: |
| 253 | + name: selenium-router-deployment |
| 254 | + labels: |
| 255 | + app: selenium-router |
| 256 | + name: selenium-router |
| 257 | + component: "selenium-grid-4" |
| 258 | +spec: |
| 259 | + replicas: 1 |
| 260 | + selector: |
| 261 | + matchLabels: |
| 262 | + app: selenium-router |
| 263 | + template: |
| 264 | + metadata: |
| 265 | + labels: |
| 266 | + app: selenium-router |
| 267 | + name: selenium-router |
| 268 | + component: "selenium-grid-4" |
| 269 | + spec: |
| 270 | + containers: |
| 271 | + - name: selenium-router |
| 272 | + image: selenium/router:4.0.0-alpha-7-20201119 |
| 273 | + env: |
| 274 | + - name: SE_DISTRIBUTOR_HOST |
| 275 | + value: "selenium-distributor" |
| 276 | + - name: SE_DISTRIBUTOR_PORT |
| 277 | + value: "5553" |
| 278 | + - name: SE_SESSIONS_MAP_HOST |
| 279 | + value: "selenium-sessions" |
| 280 | + - name: SE_SESSIONS_MAP_PORT |
| 281 | + value: "5556" |
| 282 | + - name: SE_SESSION_QUEUER_HOST |
| 283 | + value: "selenium-session-queuer" |
| 284 | + - name: SE_SESSION_QUEUER_PORT |
| 285 | + value: "5559" |
| 286 | + ports: |
| 287 | + - containerPort: 4444 |
| 288 | + protocol: TCP |
| 289 | +--- |
| 290 | +#*************************************** |
230 | 291 | #SELENIUM CHROME NODE
|
231 | 292 | #***************************************
|
232 | 293 | apiVersion: v1
|
|
0 commit comments