Skip to content

Selenium grid setup using Kubernetes and other docker referrence

Notifications You must be signed in to change notification settings

RameshBabuPrudhvi/docker-grid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Selenium Grid setup using Kubernetes cluster

Install chocolatey:

Open Powershell as Admin and run below command

Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))

Install Minikube

choco install minikube
choco install kubernetes-cli
minikube start

Selenium hub and node deployment

kubectl create -f ./deploy.yml
kubectl create -f ./service.yml
kubectl create -f ./rep.yml

To view minikube dashboard

minikube dashboard

Update deploment changes

kubectl apply -f ./deploy.yml --record

Get deploment history

kubectl rollout history deployment selenium-hub

Get deploment status

kubectl rollout status deployment selenium-hub

Get details about pods

kubectl describe pod

Check pod status

kubectl get pods

Delete pod

Delete pods :  kubectl delete pods/[pod ID]

Install Jenkins:

docker run -p 8080:8080 -p 50000:50000 jenkins/jenkins:lts

Start container:

docker container start [container id]

Stop / remove all Docker containers

docker stop $(docker ps -a -q)
docker rm $(docker ps -a -q)

Stop / remove all Docker images

docker rmi $(docker images -a -q)

About

Selenium grid setup using Kubernetes and other docker referrence

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published