Skip to content

Commit

Permalink
Update sample chart refValues for deployment
Browse files Browse the repository at this point in the history
[skip ci]

Signed-off-by: Viet Nguyen Duc <nguyenducviet4496@gmail.com>
  • Loading branch information
VietND96 committed Dec 19, 2023
1 parent 1e72a80 commit c914033
Show file tree
Hide file tree
Showing 2 changed files with 83 additions and 0 deletions.
82 changes: 82 additions & 0 deletions tests/charts/refValues/sample-aws.yaml
@@ -0,0 +1,82 @@
# README: This is a sample values for chart deployment in EKS AWS
# Chart dependency ingress-nginx is installed together by enabling `ingress-nginx.enabled`. On AWS, ingress-nginx is installed as a Classic LoadBalancer
# Chart dependency keda is installed together by enabling `autoscaling.enable`
# Enabled ingress with hostname, set the subPath `/selenium`. Grid is accessible via http://my.hostname/selenium
# Use this reference values to deploy e.g. `helm upgrade --install test --values tests/charts/refValues/sample-aws.yaml docker-selenium/selenium-grid --version <0.26.3_onwards>`
global:
K8S_PUBLIC_IP: ""
seleniumGrid:
logLevel: INFO # Change to FINE when you want to debug the issue

ingress:
enabled: true
annotations:
kubernetes.io/ingress.class: nginx
nginx.ingress.kubernetes.io/use-regex: "true"
nginx.ingress.kubernetes.io/rewrite-target: /$2
nginx.ingress.kubernetes.io/app-root: &gridAppRoot "/selenium"
ingressClassName: nginx
hostname: "aws.ndviet.org" # Replace with your hostname
paths:
- path: /selenium(/|$)(.*)
pathType: ImplementationSpecific
backend:
service:
name: '{{ template "seleniumGrid.router.fullname" $ }}'
port:
number: 4444

basicAuth:
enabled: false

isolateComponents: true

autoscaling:
enabled: 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

components:
subPath: *gridAppRoot

chromeNode:
extraEnvironmentVariables: &extraEnvironmentVariablesNodes
- name: SE_NODE_SESSION_TIMEOUT
value: "300"
- name: SE_VNC_NO_PASSWORD
value: "true"
- name: SE_OPTS
value: "--enable-managed-downloads true"
startupProbe: &nodeStartupProbe
httpGet:
path: /status
port: 5555
failureThreshold: 120
periodSeconds: 1

firefoxNode:
extraEnvironmentVariables: *extraEnvironmentVariablesNodes
startupProbe: *nodeStartupProbe

edgeNode:
extraEnvironmentVariables: *extraEnvironmentVariablesNodes
startupProbe: *nodeStartupProbe

videoRecorder:
enabled: false

ingress-nginx:
enabled: true
1 change: 1 addition & 0 deletions tests/charts/refValues/simplex-minikube.yaml
Expand Up @@ -4,6 +4,7 @@
# 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:
Expand Down

0 comments on commit c914033

Please sign in to comment.