{"id":21061718,"url":"https://github.com/manoj9788/kubernetes-docker-selenium","last_synced_at":"2025-05-16T00:34:31.777Z","repository":{"id":148885603,"uuid":"91638427","full_name":"manoj9788/kubernetes-docker-selenium","owner":"manoj9788","description":"Orchestrating docker-selenium via Kubernetes","archived":false,"fork":false,"pushed_at":"2017-08-16T04:12:26.000Z","size":4,"stargazers_count":31,"open_issues_count":0,"forks_count":23,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-03T18:21:29.783Z","etag":null,"topics":["docker-selenium","kubernetes","selenium-grid"],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/manoj9788.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-05-18T02:08:39.000Z","updated_at":"2024-07-22T15:34:47.000Z","dependencies_parsed_at":"2023-07-06T18:16:21.219Z","dependency_job_id":null,"html_url":"https://github.com/manoj9788/kubernetes-docker-selenium","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manoj9788%2Fkubernetes-docker-selenium","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manoj9788%2Fkubernetes-docker-selenium/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manoj9788%2Fkubernetes-docker-selenium/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manoj9788%2Fkubernetes-docker-selenium/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/manoj9788","download_url":"https://codeload.github.com/manoj9788/kubernetes-docker-selenium/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254448066,"owners_count":22072755,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker-selenium","kubernetes","selenium-grid"],"created_at":"2024-11-19T17:27:07.247Z","updated_at":"2025-05-16T00:34:31.759Z","avatar_url":"https://github.com/manoj9788.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"## Kubernetes-docker-selenium\n\n### Orchestrating docker-selenium via Kubernetes\n\n\nKubernetes is a platform for hosting Docker containers in a clustered environment with multiple Docker hosts. Kubernetes is a system for managing containerized applications across a cluster of nodes.  \n\nMinikube runs a single-node Kubernetes cluster inside a VM on your laptop for users looking to try out Kubernetes.Basics of Kubernetes\n\n#### _Kubernetes 101_\n\n- Pod: A group of containers\n- Labels: Labels for identifying pods\n- Kubelet: Container Agent\n- etcd: A metadata service\n- Proxy: A load balancer for pods\n- Replication Controller: Manages replication of pods\n\n## _Using Minikube_\n\nRunning a Kubernetes environment using [Minikube ](https://kubernetes.io/docs/tutorials/stateless-application/hello-minikube/)for simplicity purpose.\n\n### Launching selenium hub\n```\n$ kubectl run selenium-hub --image selenium/hub:3.4.0 --port 4444\n```\n#### Exposing selenium-hub to be able to access externally\n```\n$ kubectl expose deployment selenium-hub --type=NodePort\n```\n\n#### To Access the selenium-hub url\n```\n$ minikube service selenium-hub --url\n\nIt would show something like,\nhttp://192.168.99.100:xxxx\n```\n\n### Bringing up Selenium Nodes\n```\n$ kubectl run selenium-node-chrome --image selenium/node-chrome:3.4.0 --env=\"HUB_PORT_4444_TCP_ADDR=selenium-hub\" --env=\"HUB_PORT_4444_TCP_PORT=4444\"\n```\n\n```\n$ kubectl run selenium-node-firefox --image selenium/node-firefox:3.4.0 --env=\"HUB_PORT_4444_TCP_ADDR=selenium-hub\" --env=\"HUB_PORT_4444_TCP_PORT=4444\"\n```\n### Scaling Selenium Grid cluster\n```\n$ kubectl run selenium-node-chrome --image selenium/node-chrome:3.4.0 --env=\"HUB_PORT_4444_TCP_ADDR=selenium-hub\" --env=\"HUB_PORT_4444_TCP_PORT=4444\"\n```\n\n## _Using Google Container Engine_\n\n### Launch a Selenium hub\n```\n$ kubectl -f create selenium-hub-rc.yaml\n```\n#### Selenium hub as a service for nodes to connect\n```\nkubectl create -f selenium-hub-svc.yml\n```\n\n### Bringing up Selenium nodes\n#### Chrome\n```\n$kubectl create -f selenium-node-chrome-rc.yaml\n```\n#### Firefox\n```\n$kubectl create -f selenium-node-firefox-rc.yaml\n```\n\n## _Using Helm_\n\nHelm is a tool that streamlines installing and managing Kubernetes applications. \nThink of it like apt/yum/homebrew for Kubernetes.\n\n- A Helm package is bundled up as a chart.\n- Charts are Helm packages that contain at least two things:\n    - A description of the package (Chart.yaml)\n    - One or more templates, which contain Kubernetes manifest files\n\n- Charts can be stored on disk, or fetched from remote chart repositories (like Debian or RedHat packages) it users git \nunder the hood\n\n#### Helm package can be found here: [helm-selenium ](https://kubeapps.com/charts/stable/selenium)\n\nTo get started, its as simple as:\n```\n$ helm install stable/selenium\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanoj9788%2Fkubernetes-docker-selenium","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmanoj9788%2Fkubernetes-docker-selenium","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanoj9788%2Fkubernetes-docker-selenium/lists"}