mirror of
https://github.com/burakkaygusuz/selenium-4-grid-k8s-docker.git
synced 2021-06-27 00:03:24 +03:00
530bec0963b13af448585f962a48ab6e8bc938e0
Selenium 4 Grid & K8s & Docker
This demo that created as a template, demonstrates how to do the settings of the Chrome ve Firefox web driver for distributed parallel testing with Selenium 4 Grid using Kubernetes and Docker.
Requirements
- This project requires Java 11 JDK.
- Install Docker.
- Install Kubectl, Kubernetes command-line tool. (This item is optional. kubectl.exe is added with Docker installation.)
- Install Minikube to run Kubernetes as locally.
- Specify any VM driver appropriate for your OS. Review the doc for driver list : https://minikube.sigs.k8s.io/docs/drivers/
Deploying the Kubernetes
# Configure the vm-driver
$ minikube config set vm-driver '<vm-driver-name>'
# Start minikube with configured CPU & memory
$ minikube start --cpus 4 --memory 8192
# Deploy all the grid components to kubernetes
$ kubectl apply -f deploy.yml
# Expose the router
$ kubectl expose deployment selenium-router-deployment --type=NodePort --port=4444
# Get the router URL to access the grid from outside K8s cluster
$ minikube service selenium-router-deployment --url
## To access the dashboard
$ minikube dashboard
Description
Languages
Java
100%