Configuring an HTTP Load Balancer with Autoscaling
퀵랩의 내용을 정리한 것 입니다.
잊어버리지 않기 위해서요...

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

Task 2: Create a NAT configuration using Cloud Router
Network services > Cloud NAT.
]

Task 3: Create a custom image for a web server
ompute Engine > VM instances

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

sudo service apache2 status
Prepare the disk to create a custom image
디스크가 지워져도 Keep disk인지 확인합니다.

인스턴스를 삭제 합니다.

Create the custom image

생성합니다.

Task 4. Configure an instance template and create instance groups
Configure the instance template



Create the managed instance groups





Verify the backends

Task 5. Configure the HTTP load balancer
Start the configuration

Network Services > Load balancing.

Configure the backend




Configure the frontend
