![]() ![]() You can also change the CPU and Memory limits. In the above YAML script, we have used the Kubernetes Deployment concept to create a Selenium Grid Hub and we have used “ selenium/hub:3.141.59-20200515” as the hub image. Let’s start with the Selenium Hub by using the Kubernetes Rolling Deployments scheme. #PLAY FRAMEWORK ON DOCKER ON KUBERNETES INSTALL#Kubernetes Service has bi-directional communication between the hub and the nodes.īefore starting to create our YAML files, I highly suggested using Microsoft VS Code and install YAML, Kubernetes, and Docker plugins. We will communicate over the Kubernetes Service to reach the hub and the nodes. ![]() When minukube has been started, we can use minikube and kubectl commands to create our Selenium Grid Architecture with Kubernetes. For this, we need to open a terminal and run the below commands consecutively.Īfter these commands, we should see the below result which shows minikube has started successfully. Then, we need to install Kubernetes and Minikube on our machine. After this step, you will start the Docker on your machine. #PLAY FRAMEWORK ON DOCKER ON KUBERNETES MAC#I am using a MAC but the installation of Docker is pretty straightforward for both OS. First, we need to install Docker on our machine (PC or MAC). Finally, we will modify our Selenium TestNG parallel test execution project URL as our grid’s URL and run our tests in parallel. Also, we will use Kubernetes Rolling Deployment, Service, Replication Controller concepts. This is the main architecture of our grid setup. These grid modules will communicate with each other over Kubernetes Service. In this article, our aim is to create a selenium grid with a hub, three chrome nodes, and three firefox nodes. It will help all of you to learn the Kubernetes fundamentals. However, if you want to learn more theory of Kubernetes, I would like to suggest my friend Karthik K.K.’s Kubernetes series. I will not go into too much theory in this post. We will use Kubernetes for automating deployment, scaling, and management of containerized Selenium Grid, and Docker for operating-system-level virtualization which is also known as containerization. In this article, we will spin up and scale Selenium Grid with Kubernetes and Docker and run parallel testing with this solution. Previously, we have written articles on Docker with Selenium, Selenoid with Selenium, Selenium Grid, and Parallel Testing with TestNG. However, during the Eid holiday, I wanted to play with Kubernetes, scale the selenium grid with it, and share my experience with you all. Hi all, for a long time I could not find time to write an article on swtestacademy because of the busy schedule at work.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |