selenosis kubernetes deployment
git clone https://github.com/alcounit/selenosis-deploy.git && cd selenosis-deploy
kubectl apply -f 01-namespace.yaml
Check https://github.com/alcounit/selenosis for config examples. Create your own config and create config map from it, config file can be YAML or JSON.
kubectl create cm selenosis-config --from-file=browsers.json=browsers.json -n selenosis
kubectl create cm selenosis-config --from-file=browsers.yaml=browsers.yaml -n selenosis
kubectl apply -f 02-service.yaml
kubectl get svc -n selenosis
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
seleniferous ClusterIP None <none> <none> 8h
selenosis LoadBalancer 10.43.201.60 <pending> 4444:31000/TCP 8h
If external IP is not assigned for selenosis use kubernetes node as access point
selenosis:
http://<loadBalancerIP|nodeIP>:<4444|31000>/wd/hub
kubectl apply -f 03-selenosis.yaml
kubectl get po -n selenosis
NAME READY STATUS RESTARTS AGE
selenosis-694c76f757-5m2ws 1/1 Running 0 132m
selenosis-694c76f757-6bgwl 1/1 Running 0 132m
If you need UI for your tests perform command
kubectl apply -f 04-selenoid-ui.yaml
kubectl apply -f 05-selenosis-hpa.yaml
kubectl get po -n selenosis
NAME READY STATUS RESTARTS AGE
selenoid-ui-5bcc66c78d-dj7z7 2/2 Running 0 18m
selenosis-694c76f757-5m2ws 1/1 Running 0 132m
selenosis-694c76f757-6bgwl 1/1 Running 0 132m
kubectl get svc -n selenosis
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
selenoid-ui LoadBalancer 10.43.48.95 <pending> 8080:32000/TCP 8h
seleniferous ClusterIP None <none> <none> 8h
selenosis LoadBalancer 10.43.201.60 <pending> 4444:31000/TCP 8h
If external IP is not assigned for selenoid-ui use kubernetes node as access point
selenoid-ui:
http://<loadBalancerIP|nodeIP>:<8080|32000>/