Deploy Moon on Azure and Google Cloud

Before we begin, lets quickly understand what is Moon

Google Cloud

Cluster Creation on GCP
$ git clone https://github.com/aerokube/moon-deploy.git && cd moon-deploy && kubectl apply -f moon.yaml
$ kubectl get svc -n moon

Azure Cloud

$ az aks create --resource-group TestAutomation --name moon --node-count 1 --generate-ssh-keys
$ az group create --name TestAutomation --location eastus
Kubernetes Service ‘moon’ created in Azure
$ az account set --subscription <your subscription id>
$ az aks get-credentials --resource-group TestAutomation --name moon
$ git clone https://github.com/aerokube/moon-deploy.git && cd moon-deploy && kubectl apply -f moon.yaml
$ kubectl get svc -n moon
Selenoid UI
const { chromium} = require('playwright');

(async () => {
var browser = await chromium.launch();
const page = await browser.newPage();
await page.goto('https://www.example.com/');
await browser.close();
})();
let moonHostIp = '52.186.103.162'; //This the External IPasync() =>{
var browser = await chromium.connect({
timeout: 0,
wsEndpoint: 'ws://'+moonHostIp+':4444/playwright/chromium',
});
const page = await browser.newPage();
await page.goto('https://www.example.com/');
await browser.close();
})();
var browser = await firefox.connect({ wsEndpoint: 'ws://moon.example.com:4444/playwright/firefox?headless=false&enableVideo=true&screenResolution=1280x1024' });

--

--

--

Test Automation Architect @ING Bank. Tech enthusiast. Innovation champion.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Email Integration In Ruby on Rails using Gmail!

Micro Frontends, Role-Based Applications, and You

FOSS: History and Philosophy

Introducing Parcel Gridding

Why do you need an Offshore Development Team for your Projects?

Nginx + PHP7 Alongside IIS on Windows System

[EKS] Spot Instances in Node group

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Ashish Ghosh

Ashish Ghosh

Test Automation Architect @ING Bank. Tech enthusiast. Innovation champion.

More from Medium

Continuous Testing Using Shift Left Testing Approach

Azure DevOps CI/CD 101 | Continuous Integration and Continuous Delivery

Chaos Engineering — Attack, Observe, Improve

Azure DevOps CI/CD with Mule Application and CloudHub