Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rameshbabuprudhvi/docker-grid
Selenium grid setup using Kubernetes and other docker referrence
https://github.com/rameshbabuprudhvi/docker-grid
jenkins kubernetes kubernetes-deployment selenium selenium-grid
Last synced: about 1 month ago
JSON representation
Selenium grid setup using Kubernetes and other docker referrence
- Host: GitHub
- URL: https://github.com/rameshbabuprudhvi/docker-grid
- Owner: RameshBabuPrudhvi
- Created: 2020-06-19T08:15:55.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-06-26T14:29:29.000Z (over 4 years ago)
- Last Synced: 2024-11-08T11:56:39.753Z (3 months ago)
- Topics: jenkins, kubernetes, kubernetes-deployment, selenium, selenium-grid
- Homepage:
- Size: 14.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Selenium Grid setup using Kubernetes cluster
## Install chocolatey:
Open Powershell as Admin and run below command
```shell
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
```docker
choco install minikube
choco install kubernetes-cli
minikube start
```
## Selenium hub and node deployment
```docker
kubectl create -f ./deploy.yml
kubectl create -f ./service.yml
kubectl create -f ./rep.yml
```
## To view minikube dashboard
```docker
minikube dashboard
```
## Update deploment changes
```docker
kubectl apply -f ./deploy.yml --record
```
## Get deploment history
```docker
kubectl rollout history deployment selenium-hub
```
## Get deploment status
```docker
kubectl rollout status deployment selenium-hub
```
## Get details about pods
```docker
kubectl describe pod
```
## Check pod status
```docker
kubectl get pods
```
## Delete pod
```docker
Delete pods : kubectl delete pods/[pod ID]
```## Install Jenkins:
```docker
docker run -p 8080:8080 -p 50000:50000 jenkins/jenkins:lts
```
## Start container:
```docker
docker container start [container id]
```
## Stop / remove all Docker containers
```docker
docker stop $(docker ps -a -q)
docker rm $(docker ps -a -q)
```
## Stop / remove all Docker images
```docker
docker rmi $(docker images -a -q)
```