Giter Club home page Giter Club logo

selenosis-deploy's Introduction

selenosis-deploy

selenosis kubernetes deployment

Clone deployment files

git clone https://github.com/alcounit/selenosis-deploy.git && cd selenosis-deploy

Create namespace

 kubectl apply -f 01-namespace.yaml

Create config map from config file

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

Create kubernetes service

 kubectl apply -f 02-service.yaml

Check service status

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

Deploy selenosis

kubectl apply -f 03-selenosis.yaml

Check deployment status

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

Deploy selenoid-ui

kubectl apply -f 04-selenoid-ui.yaml

Deploy selenosis hpa

kubectl apply -f 05-selenosis-hpa.yaml

Check deployment status

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

Check service status

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>/

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.