-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathselenium.yaml
85 lines (85 loc) · 1.79 KB
/
selenium.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
apiVersion: apps/v1
kind: Deployment
metadata:
name: selenium-grid
labels:
app: selenium-grid
name: selenium-grid
spec:
replicas: 1
selector:
matchLabels:
app: selenium-grid
template:
metadata:
labels:
app: selenium-grid
spec:
containers:
- name: selenium-hub
image: selenium/standalone-chrome:113.0
env:
- name: SE_SCREEN_WIDTH
value: "1366"
- name: SE_SCREEN_HEIGHT
value: "768"
- name: SE_VNC_NO_PASSWORD
value: "1"
- name: SE_NODE_SESSION_TIMEOUT
value: "1000"
# - name: SE_START_NO_VNC
# value: "false"
# - name: SE_START_VNC
# value: "false"
- name: SE_NODE_MAX_SESSIONS
value: "1"
ports:
- containerPort: 4444
protocol: TCP
resources:
limits:
memory: 2Gi
cpu: "2500m"
---
apiVersion: v1
kind: Service
metadata:
name: selenium-grid
labels:
name: selenium-grid
spec:
selector:
app: selenium-grid
ports:
- name: web
protocol: TCP
port: 4444
targetPort: 4444
- name: vnc
protocol: TCP
port: 7900
targetPort: 7900
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: selenium-grid-ingress
annotations:
cert-manager.io/issuer: "letsencrypt-prod"
spec:
ingressClassName: nginx
tls:
- hosts:
- vnc.eonus.dev
secretName: wp-bot-vnc
rules:
- host: vnc.eonus.dev
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: selenium-grid
port:
number: 7900