Configuring an HTTP Load Balancer with Autoscaling

퀵랩의 내용을 정리한 것 입니다.
잊어버리지 않기 위해서요...

image

In this lab, you learn how to perform the following tasks:

  • Create a health check firewall rule
  • Create a NAT configuration using Cloud Router
  • Create a custom image for a web server
  • Create an instance template based on the custom image
  • Create two managed instance groups
  • Configure an HTTP load balancer with IPv4 and IPv6
  • Stress test an HTTP load balancer

Task 1. Configure a health check firewall rule

방화벽 규칙을 만듭니다.

[Create Firewall Rule]
fw-allow-health-checks image

Task 2: Create a NAT configuration using Cloud Router

Network services > Cloud NAT.
image ] image

Task 3: Create a custom image for a web server

ompute Engine > VM instances

image image

sudo apt-get update
sudo apt-get install -y apache2
sudo service apache2 start
curl localhost
# 부팅후에도 서비스 등록 합니다.
sudo update-rc.d apache2 enable

image

sudo service apache2 status

Prepare the disk to create a custom image

디스크가 지워져도 Keep disk인지 확인합니다.
image

인스턴스를 삭제 합니다. image

Create the custom image

image

생성합니다. image image

Task 4. Configure an instance template and create instance groups

Configure the instance template

image
image

image

image

Create the managed instance groups

image image image
image

image

image

image
image

Verify the backends

image

Task 5. Configure the HTTP load balancer

Start the configuration

image

Network Services > Load balancing. image image

Configure the backend

image

image

image

image
image

Configure the frontend

image image image

Task 6. Stress test the HTTP load balancer