-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Expand file tree
/
Copy pathDeploymentAutoscaling-values.yaml
More file actions
111 lines (106 loc) · 3 KB
/
DeploymentAutoscaling-values.yaml
File metadata and controls
111 lines (106 loc) · 3 KB
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
global:
seleniumGrid:
nodeEnableManagedDownloads: ${SELENIUM_ENABLE_MANAGED_DOWNLOADS}
autoscaling:
scalingType: deployment
scaledOptions:
minReplicaCount: 0
maxReplicaCount: 4
pollingInterval: 10
scaledObjectOptions:
cooldownPeriod: ${AUTOSCALING_COOLDOWN_PERIOD}
terminationGracePeriodSeconds: 360
# Configuration for chrome nodes
chromeNode:
# (test): user is able to change `SE_NODE_PORT`
port: 6666
# (test): user is able to set NodePort to expose `SE_NODE_PORT`
nodePort: 30666
# (test): user is able to define list extra container ports
ports:
- 5900
- 7900
service:
type: NodePort
# (test): user is able to define extra ports for Node service
ports:
- name: vnc-port
protocol: TCP
port: 5900
targetPort: 5900
nodePort: 30590
- name: novnc-port
protocol: TCP
port: 7900
targetPort: 7900
# NodePort will be assigned randomly if not set
extraEnvironmentVariables: &extraEnvironmentVariables
- name: SE_BROWSER_ARGS_DISABLE_FEATURES
value: "--disable-features=OptimizationGuideModelDownloading,OptimizationHintsFetching,OptimizationTargetPrediction,OptimizationHints"
- name: SE_BROWSER_ARGS_DISABLE_SEARCH_ENGINE
value: "--disable-search-engine-choice-screen"
- name: SE_VNC_NO_PASSWORD
value: "true"
- name: SE_SCREEN_WIDTH
value: "1920"
- name: SE_SCREEN_HEIGHT
value: "1080"
- name: TZ
value: "Asia/Saigon"
- name: SE_NODE_SESSION_TIMEOUT
value: "3600"
- name: SE_JAVA_HEAP_DUMP
value: "true"
readinessProbe:
enabled: &readinessProbe true
livenessProbe:
enabled: &livenessProbe true
extraVolumeMounts: &extraVolumeMounts
- name: logs
mountPath: /opt/selenium/logs
subPath: logs
extraVolumes: &extraVolumes
- name: logs
persistentVolumeClaim:
claimName: selenium-grid-pvc-local
scaledOverProvisionRatio: 1.1
# Configuration for edge nodes
edgeNode:
port: 8888
# (test): user is able to define extra container ports
ports:
- containerPort: 5900
name: vnc
protocol: TCP
- containerPort: 7900
name: novnc
protocol: TCP
extraEnvironmentVariables: *extraEnvironmentVariables
# (test): user is able to override probe method
startupProbe:
enabled: true
tcpSocket:
port: 8888
readinessProbe:
enabled: *readinessProbe
livenessProbe:
enabled: *livenessProbe
extraVolumeMounts: *extraVolumeMounts
extraVolumes: *extraVolumes
# Configuration for firefox nodes
firefoxNode:
port: 7777
extraEnvironmentVariables: *extraEnvironmentVariables
readinessProbe:
enabled: *readinessProbe
livenessProbe:
enabled: *livenessProbe
extraVolumeMounts: *extraVolumeMounts
extraVolumes: *extraVolumes
scaledOverProvisionRatio: 1.2
# Configuration for relay nodes
relayNode:
relayUrl: "https://ondemand.$SAUCE_REGION.saucelabs.com:443/wd/hub"
extraEnvFrom:
- secretRef:
name: test-cloud-credentials