selenium

by joaquinito2051

Helm chartv1.0.8App 3.141.59

Chart for selenium grid

About this chart

Selenium

TL;DR;

$ helm install <helm-repo>/selenium

$ helm install stable/selenium

Introduction

This chart bootstraps a Selenium deployment on a Kubernetes cluster using the Helm package manager.

Prerequisites

  • Kubernetes 1.5+ with Beta APIs enabled

Installing the Chart

To install the chart with the release name my-release:

$ helm install --name my-release <helm-repo>/selenium

$ helm install --name my-release stable/selenium The command deploys Selenium on the Kubernetes cluster in the default configuration. The configuration section lists the parameters that can be configured during installation.

Tip: List all releases using helm list

Uninstalling the Chart

To uninstall/delete the my-release deployment:

$ helm delete my-release

The command removes all the Kubernetes components associated with the chart and deletes the release.

Configuration

The following table lists the configurable parameters of the Selenium chart and their default values.

ParameterDescriptionDefault
global.nodeSelectorNode label to be useed globally for scheduling of all imagesnil
global.hostAliasesA list of hostAliases, that contains ip and hostnames, to be used globally[]
global.affinityDeployemnt affinities to be used globally for scheduling of all imagesnil
global.tolerationsDeployment tolerations to be used globally for scheduling of all imagesnil
global.imagePullSecretsThe secret to use for pulling the images for all deploymentsnil
hub.imageThe selenium hub imageselenium/hub
hub.tagThe selenium hub image tag3.141.59
hub.imagePullSecretsThe secret to use for pulling the image. Will override the global parameter if setnil
hub.pullPolicyThe pull policy for the hub imageIfNotPresent
hub.portThe port the hub listens on4444
hub.servicePortThe port the hub Service listens on4444
hub.nodePortThe port the hub is exposed when Nodeport mode is selectednil
hub.podAnnotationsAnnotations on the hub pod{}
hub.extraEnvsAny additional environment variables to set in the pods[]
hub.javaOptsThe java options for the selenium hub JVM, default sets the maximum heap size to 400 mb-Xmx400m
hub.resourcesThe resources for the hub container, defaults to minimum half a cpu and maximum 512 mb RAM{"limits":{"cpu":".5", "memory":"512Mi"}}
hub.serviceTypeThe Service typeLoadBalancer
hub.serviceLoadBalancerIPThe Public IP for the Load Balancernil
hub.loadBalancerSourceRangesA list of IP CIDRs allowed access to load balancer (if supported)[]
hub.serviceSessionAffinityThe session affinity for the hub serviceNone
hub.gridNewSessionWaitTimeoutnil
hub.gridJettyMaxThreadsnil
hub.gridNodePollingnil
hub.gridCleanUpCyclenil
hub.gridTimeoutnil
hub.gridBrowserTimeoutnil
hub.gridMaxSessionnil
hub.gridUnregisterIfStillDownAfternil
hub.seOptsCommand line arguments to pass to hubnil
hub.timeZoneThe time zone for the containernil
hub.nodeSelectorNode label to use for scheduling of the hub if set this takes precedence over the global valuenil
hub.affinityDeployemnt affinities to use for scheduling of the hub if set this takes precedence over the global valuenil
hub.tolerationsDeployment tolerations to use for scheduling of the hub if set this takes precedence over the global valuenil
hub.ingress.enabledConfigure an ingress for the selenium hubfalse
hub.ingress.annotationsAnnotations for the ingress for the selenium hubnil
hub.ingress.pathThe path for this ingress from which to route the traffic to the selenium hub/
hub.ingress.hostsThe list hosts for which this ingress should resolve the selenium hub[selenium-hub.local]
hub.ingress.tlsThe tls secret to configure ssl for this ingress[]
hub.readinessTimeoutTimeout for hub readiness probe in seconds1
hub.livenessTimeoutTimeout for hub liveness probe in seconds1
hub.probePathPath for readiness and liveness probes to check/wd/hub/status
chrome.enabledSchedule a chrome node podfalse
chrome.imageThe selenium node chrome imageselenium/node-chrome
chrome.tagThe selenium node chrome tag3.141.59
chrome.imagePullSecretsThe secret to use for pulling the image. Will override the global parameter if setnil
chrome.pullPolicyThe pull policy for the node chrome imageIfNotPresent
chrome.replicasThe number of selenium node chrome pods1
chrome.podAnnotationsAnnotations on the chrome pods{}
chrome.extraEnvsAny additional environment variables to set in the pods[]
chrome.javaOptsThe java options for the selenium node chrome JVM, default sets the maximum heap size to 900 mb-Xmx900m
chrome.volumeMountsAdditional volumes to mount, the default provides a larger shared memory[{"mountPath":"/dev/shm", "name":"dshm"}]
chrome.volumesAdditional volumes import, the default provides a larger shared memory[{"name":"dshm", "emptyDir":{"medium":"Memory"}}]
chrome.resourcesThe resources for the node chrome container, defaults to minimum half a cpu and maximum 1,000 mb{"limits":{"cpu":".5", "memory":"1000Mi"}}
chrome.screenWidthnil
chrome.screenHeightnil
chrome.screenDepthnil
chrome.displayThe vnc displaynil
chrome.chromeVersionThe version of chrome to usenil
chrome.nodeMaxInstancesThe maximum number of browser instancesnil
chrome.nodeMaxSessionThe maximum number of sessionsnil
chrome.nodeRegistryCycleThe number of milliseconds to wait, registering a nodenil
chrome.nodePortThe port to listen onnil
chrome.seOptsCommand line arguments to pass to nodenil
chrome.timeZoneThe time zone for the containernil
chrome.nodeSelectorNode label to use for scheduling of chrome images if set this takes precedence over the global valuenil
chrome.affinityDeployemnt affinities to use for scheduling of the chrome if set this takes precedence over the global valuenil
chrome.tolerationsDeployment tolerations to use for scheduling of the chrome if set this takes precedence over the global valuenil
chromeDebug.enabledSchedule a selenium node chrome debug podfalse
chromeDebug.imageThe selenium node chrome debug imageselenium/node-chrome-debug
chromeDebug.tagThe selenium node chrome debug tag3.141.59
chromeDebug.imagePullSecretsThe secret to use for pulling the image. Will override the global parameter if setnil
chromeDebug.pullPolicyThe selenium node chrome debug pull policyIfNotPresent
chromeDebug.replicasThe number of selenium node chrome debug pods1
chromeDebug.podAnnotationsAnnotations on the Chrome debug pod{}
chromeDebug.extraEnvsAny additional environment variables to set in the pods[]
chromeDebug.javaOptsThe java options for a selenium node chrome debug JVM, default sets the max heap size to 900 mb-Xmx900m
chromeDebug.volumeMountsAdditional volumes to mount, the default provides a larger shared[{"mountPath":"/dev/shm", "name":"dshm"}]
chromeDebug.volumesAdditional volumes import, the default provides a larger shared[{"name":"dshm", "emptyDir":{"medium":"Memory"}}]
chromeDebug.resourcesThe resources for the hub container, defaults to minimum half a cpu and maximum 1,000 mb{"limits":{"cpu":".5", "memory":"1000Mi"}}
chromeDebug.screenWidthnil
chromeDebug.screenHeightnil
chromeDebug.screenDepthnil
chromeDebug.displayThe vnc displaynil
chromeDebug.chromeVersionThe version of chrome to usenil
chromeDebug.nodeMaxInstancesThe maximum number of browser instancesnil
chromeDebug.nodeMaxSessionThe maximum number of sessionsnil
chromeDebug.nodeRegistryCycleThe number of milliseconds to wait, registering a nodenil
chromeDebug.nodePortThe port to listen onnil
chromeDebug.seOptsCommand line arguments to pass to nodenil
chromeDebug.timeZoneThe time zone for the containernil
chromeDebug.nodeSelectorNode label to use for scheduling of chromeDebug images if set this takes precedence over the global valuenil
chromeDebug.affinityDeployemnt affinities to use for scheduling of the chromeDebug if set this takes precedence over the global valuenil
chromeDebug.tolerationsDeployment tolerations to use for scheduling of the chromeDebug if set this takes precedence over the global valuenil
firefox.enabledSchedule a selenium node firefox podfalse
firefox.imageThe selenium node firefox imageselenium/node-firefox
firefox.tagThe selenium node firefox tag3.141.59
firefox.imagePullSecretsThe secret to use for pulling the image. Will override the global parameter if setnil
firefox.pullPolicyThe selenium node firefox pull policyIfNotPresent
firefox.replicasThe number of selenium node firefox pods1
firefox.podAnnotationsAnnotations on the firefox pods{}
firefox.extraEnvsAny additional environment variables to set in the pods[]
firefox.javaOptsThe java options for a selenium node firefox JVM, default sets the max heap size to 900 mb-Xmx900m
firefox.resourcesThe resources for the hub container, defaults to minimum half a cpu and maximum 1,000 mb{"limits":{"cpu":".5", "memory":"1000Mi"}}
firefox.screenWidthnil
firefox.screenHeightnil
firefox.screenDepthnil
firefox.displayThe vnc displaynil
firefox.firefoxVersionThe version of firefox to usenil
firefox.nodeMaxInstancesThe maximum number of browser instancesnil
firefox.nodeMaxSessionThe maximum number of sessionsnil
firefox.nodeRegistryCycleThe number of milliseconds to wait, registering a nodenil
firefox.nodePortThe port to listen onnil
firefox.seOptsCommand line arguments to pass to nodenil
firefox.timeZoneThe time zone for the containernil
firefox.nodeSelectorNode label to use for scheduling of firefox images if set this takes precedence over the global valuenil
firefox.affinityDeployemnt affinities to use for scheduling of the firefox if set this takes precedence over the global valuenil
firefox.tolerationsDeployment tolerations to use for scheduling of the firefox if set this takes precedence over the global valuenil
firefoxDebug.enabledSchedule a selenium node firefox debug podfalse
firefoxDebug.imageThe selenium node firefox debug imageselenium/node-firefox-debug
firefoxDebug.tagThe selenium node firefox debug tag3.141.59
firefoxDebug.imagePullSecretsThe secret to use for pulling the image. Will override the global parameter if setnil
firefoxDebug.pullPolicyThe selenium node firefox debug pull policyIfNotPresent
firefoxDebug.replicasThe number of selenium node firefox debug pods1
firefoxDebug.podAnnotationsAnnotations on the firefox debug pods{}
firefoxDebug.extraEnvsAny additional environment variables to set in the pods[]
firefoxDebug.javaOptsThe java options for a selenium node firefox debug JVM, default sets the max heap size to 900 mb-Xmx900m
firefoxDebug.resourcesThe resources for the selenium node firefox debug container, defaults to minimum half a cpu and maximum 1,000 mb{"limits":{"cpu":".5", "memory":"1000Mi"}}
firefoxDebug.screenWidthnil
firefoxDebug.screenHeightnil
firefoxDebug.screenDepthnil
firefoxDebug.displayThe vnc displaynil
firefoxDebug.firefoxVersionThe version of firefox to usenil
firefoxDebug.nodeMaxInstancesThe maximum number of browser instancesnil
firefoxDebug.nodeMaxSessionThe maximum number of sessionsnil
firefoxDebug.nodeRegistryCycleThe number of milliseconds to wait, registering a nodenil
firefoxDebug.nodePortThe port to listen onnil
firefoxDebug.seOptsCommand line arguments to pass to nodenil
firefoxDebug.timeZoneThe time zone for the containernil
firefoxDebug.nodeSelectorNode label to use for scheduling of firefoxDebug images if set this takes precedence over the global valuenil
firefoxDebug.affinityDeployemnt affinities to use for scheduling of the firefoxDebug if set this takes precedence over the global valuenil
firefoxDebug.tolerationsDeployment tolerations to use for scheduling of the firefoxDebug if set this takes precedence over the global valuenil

Specify each parameter using the --set key=value[,key=value] argument to helm install. For example,

Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. For example,
$ helm install --name my-release \
  --set chrome.enabled=true \
    <helm-repo>/selenium
$ helm install --name my-release \

Alternatively, a YA

Deploy selenium with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has selenium on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartselenium is pinned at v1.0.8 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply