This repository has been archived by the owner on Jun 15, 2021. It is now read-only.
forked from SeleniumHQ/selenium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
firefox-node.yaml
81 lines (81 loc) · 1.86 KB
/
firefox-node.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
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: firefox-node
labels:
app: firefox-node
spec:
replicas: 1
selector:
matchLabels:
app: firefox-node
template:
metadata:
labels:
app: firefox-node
spec:
containers:
- name: firefox-node
image: "selenium/firefox-node:latest"
imagePullPolicy: Always
command:
- /opt/selenium/bin/selenium.sh
- --ext
- /opt/selenium/libk8s.jar
- node
- -p
- "5555"
- --max-sessions
- "1"
- --stereotype
- '{"browserName":"firefox"}'
ports:
- containerPort: 5555
- containerPort: 5900 # VNC
env:
- name: EVENTS_BIND
value: "false"
- name: EVENTS_PUBLISH
value: "tcp://event-bus:4442"
- name: EVENTS_SUBSCRIBE
value: "tcp://event-bus:4443"
- name: NODE_IMPLEMENTATION
value: "org.openqa.selenium.grid.node.k8s.OneShotNode"
- name: NODE_GRID_URL
value: "http://localhost:4444/"
resources:
limits:
memory: "1Gi"
cpu: "2"
livenessProbe:
tcpSocket:
port: 5555
initialDelaySeconds: 2
periodSeconds: 5
readinessProbe:
httpGet:
port: 5555
path: "/readyz"
initialDelaySeconds: 2
periodSeconds: 60
---
apiVersion: v1
kind: Service
metadata:
name: firefox-node
labels:
run: firefox-node
spec:
type: NodePort
selector:
app: firefox-node
ports:
- port: 5555
targetPort: 5555
protocol: TCP
name: web
- port: 5900
targetPort: 5900
protocol: TCP
name: vnc