This repository has been archived by the owner on Jun 22, 2024. It is now read-only.
forked from SeleniumHQ/docker-selenium
-
Notifications
You must be signed in to change notification settings - Fork 26
/
simplex-minikube.yaml
97 lines (85 loc) · 2.85 KB
/
simplex-minikube.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
# README: This is a sample values for chart deployment in Minikube
# Chart dependency ingress-nginx is installed together by enabling `ingress-nginx.enabled`
# Chart dependency keda is installed together by enabling `autoscaling.enable`
# Enabled ingress without hostname, set the subPath `/selenium`. Set K8S_PUBLIC_IP point to the public host IP, where Minikube is running
# `ingress-nginx.controller.hostNetwork` is set to true to allow access from outside the cluster via http://<K8S_PUBLIC_IP>/selenium
# Components serviceType is set to NodePort to allow access from outside the cluster via K8S_PUBLIC_IP and NodePort http://<K8S_PUBLIC_IP>:30444/selenium
# Use this reference values to deploy e.g. `helm upgrade --install test --values tests/charts/refValues/simplex-minikube.yaml docker-selenium/selenium-grid --version <0.26.3_onwards>`
global:
K8S_PUBLIC_IP: "10.10.10.10" # Replace with your public IP
seleniumGrid:
logLevel: INFO
# imageRegistry: selenium
# imageTag: latest
# nodesImageTag: latest
# videoImageTag: latest
tls:
# enabled: true
ingress:
generateTLS: true
ingress:
enabled: true
annotations:
nginx.ingress.kubernetes.io/use-regex: "true"
nginx.ingress.kubernetes.io/rewrite-target: /$2
nginx.ingress.kubernetes.io/app-root: &gridAppRoot "/selenium"
className: nginx
hostname: ""
paths:
- path: /selenium(/|$)(.*)
pathType: ImplementationSpecific
backend:
service:
name: '{{ ternary (include "seleniumGrid.router.fullname" $ ) (include "seleniumGrid.hub.fullname" $ ) $.Values.isolateComponents }}'
port:
number: 4444
basicAuth:
enabled: false
isolateComponents: true
autoscaling:
# enabled: true
enableWithExistingKEDA: true
scalingType: job
annotations:
helm.sh/hook: post-install,post-upgrade,post-rollback
scaledOptions:
minReplicaCount: 0
maxReplicaCount: 8
pollingInterval: 15
scaledJobOptions:
successfulJobsHistoryLimit: 0
failedJobsHistoryLimit: 5
scalingStrategy:
strategy: default
hub:
subPath: *gridAppRoot
serviceType: NodePort
components:
subPath: *gridAppRoot
router:
serviceType: NodePort
chromeNode:
extraEnvironmentVariables: &extraEnvironmentVariablesNodes
- name: SE_NODE_SESSION_TIMEOUT
value: "300"
- name: SE_VNC_NO_PASSWORD
value: "true"
- name: SE_NODE_ENABLE_MANAGED_DOWNLOADS
value: "true"
firefoxNode:
extraEnvironmentVariables: *extraEnvironmentVariablesNodes
edgeNode:
extraEnvironmentVariables: *extraEnvironmentVariablesNodes
videoRecorder:
enabled: false
ingress-nginx:
enabled: true
controller:
# Set controller default certificate use the same with Selenium Grid
extraArgs:
default-ssl-certificate: '$(POD_NAMESPACE)/selenium-tls-secret'
hostPort:
enabled: true
kind: DaemonSet
service:
type: ClusterIP