AZLoad Balancer
https://www.greatminditacademy.com/
Activity 1: Create an two ubuntu linux VM's
Create an two ubuntu linux vm's and install Ngnix software
Below are the steps to create ubuntu machine
- While creating VM open 22, 80 ports
Once Virtual machines are created, connect server using ssh for the both the machines and install nginx software.
Now change to root user by using "sudo su" command as below
Now install nginx software by using below command
apt install nginx -y
apt install nginx -y
To verify, webserer is installed or not, browse using server Public IP in the browser
Create load balancer
During the creation of the load balancer, you'll configure:
- Frontend IP address
- Backend pool
- Inbound load-balancing rules
- Health probe
In the search box at the top of the portal, enter Load balancer. Select Load balancers in the search results.
In the Load balancer page, select + Create.
Setting Value Project details Subscription Select your subscription. Resource group Select RG-01 Instance details Name Enter myLoadBalancer Region Select East US. SKU Leave the default Standard. Type Select Public. Tier Leave the default Regional.
- Select Next: Frontend IP configuration at the bottom of the page.
- In Frontend IP configuration, select + Add a frontend IP configuration.
- Enter myFrontend in Name.
- Select IPv4 for the IP version.
- Select IP address for the IP type.
- Select Create New in Public IP address
- in Add a public Ip address, enter myPublicIP for Name
Create Backend pool
Name: be-pool and select existing Virtual network and Click on ADD to add virtual machines
Configure Health Probe
Now browse using Load balancer public IP
Now able to browse website using Load balaner public IP
Comments
Post a Comment