-
Notifications
You must be signed in to change notification settings - Fork 64
/
Copy pathselenium-hub.yaml
121 lines (121 loc) · 3.05 KB
/
selenium-hub.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
apiVersion: v1
kind: Template
metadata:
name: selenium-hub
annotations:
description: "A Selenium Grid"
iconClass: "icon-selenium"
tags: "selenium,hub"
objects:
- apiVersion: v1
kind: Service
metadata:
name: selenium-hub
spec:
selector:
type: selenium-hub
type: ClusterIP
ports:
- name: web
port: 4444
targetPort: 4444
protocol: TCP
- name: node
port: 5555
targetPort: 5555
protocol: TCP
- name: publish
port: 4442
targetPort: 4442
protocol: TCP
- name: subscribe
port: 4443
targetPort: 4443
protocol: TCP
- apiVersion: v1
kind: DeploymentConfig
metadata:
name: selenium-hub
spec:
replicas: 1
selector:
type: selenium-hub
template:
metadata:
labels:
type: selenium-hub
name: selenium-hub
spec:
containers:
- env:
- name: JAVA_OPTS
value: ${JAVA_OPTS}
- name: POOL_MAX
value: ${POOL_MAX}
- name: GRID_NEW_SESSION_WAIT_TIMEOUT
value: ${GRID_NEW_SESSION_WAIT_TIMEOUT}
- name: GRID_JETTY_MAX_THREADS
value: ${GRID_JETTY_MAX_THREADS}
- name: GRID_NODE_POLLING
value: ${GRID_NODE_POLLING}
- name: GRID_CLEAN_UP_CYCLE
value: ${GRID_CLEAN_UP_CYCLE}
- name: GRID_TIMEOUT
value: ${GRID_TIMEOUT}
- name: GRID_BROWSER_TIMEOUT
value: ${GRID_BROWSER_TIMEOUT}
- name: GRID_MAX_SESSION
value: ${GRID_MAX_SESSION}
- name: GRID_UNREGISTER_IF_STILL_DOWN_AFTER
value: ${GRID_UNREGISTER_IF_STILL_DOWN_AFTER}
image: selenium/hub:4.0.0
name: master
ports:
- containerPort: 4444
protocol: TCP
- apiVersion: v1
kind: Route
metadata:
name: selenium-hub
spec:
host: ${HUB_ROUTE}
port:
targetPort: 4444
to:
kind: Service
name: selenium-hub
parameters:
- name: HUB_ROUTE
description: Route name for the Selenium Hub
- name: JAVA_OPTS
description: Options to pass to the java command
value: "-Xmx512m"
- name: POOL_MAX
description: Max thread count for incoming and outgoing connections
value: "30000"
- name: GRID_NEW_SESSION_WAIT_TIMEOUT
description: The timeout to wait for new sessions
value: "30"
- name: GRID_JETTY_MAX_THREADS
description: Max Threads for Jetty server
value: "100"
- name: GRID_NODE_POLLING
description: Node Polling setting
value: "150"
- name: GRID_CLEAN_UP_CYCLE
description: How long to wait until cleanup on nodes
value: "300"
- name: GRID_TIMEOUT
description: The timeout for the grid
value: "300"
- name: GRID_BROWSER_TIMEOUT
description: The timeout for the browser
value: "30"
- name: GRID_MAX_SESSION
description: How many sessions max
value: "3"
- name: GRID_UNREGISTER_IF_STILL_DOWN_AFTER
description: Time to wait before unregistering nodes
value: "500"
labels:
selenium-hub: master