From c914033f21a7137342dcc9078bc601f8cc10f08a Mon Sep 17 00:00:00 2001 From: Viet Nguyen Duc Date: Tue, 19 Dec 2023 19:01:42 +0700 Subject: [PATCH] Update sample chart refValues for deployment [skip ci] Signed-off-by: Viet Nguyen Duc --- tests/charts/refValues/sample-aws.yaml | 82 ++++++++++++++++++++ tests/charts/refValues/simplex-minikube.yaml | 1 + 2 files changed, 83 insertions(+) create mode 100644 tests/charts/refValues/sample-aws.yaml diff --git a/tests/charts/refValues/sample-aws.yaml b/tests/charts/refValues/sample-aws.yaml new file mode 100644 index 000000000..d32d101cf --- /dev/null +++ b/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 diff --git a/tests/charts/refValues/simplex-minikube.yaml b/tests/charts/refValues/simplex-minikube.yaml index eb6100336..e491deda3 100644 --- a/tests/charts/refValues/simplex-minikube.yaml +++ b/tests/charts/refValues/simplex-minikube.yaml @@ -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:///selenium # Components serviceType is set to NodePort to allow access from outside the cluster via K8S_PUBLIC_IP and NodePort http://: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: