Configuring an application load balancer
In this section, we shall configure the application load balancer.
- First, select a
Cluster VPC
and twoSubnets
, as shown in the following screenshot. The VPC should be the same one that the application load balancer was created in. TheSecurity groupthat gets created is listed.Auto-assign public IP
must be set toENABLED:
![](https://static.packt-cdn.com/products/9781789345018/graphics/1636b9c4-acef-4fea-a770-6564cc678210.png)
- In the
Load balancing
section, selectApplication Load Balancer
as theLoad balancer type
, as shown in the following screenshot. Select theLoad balancer name
(hello-world-lb
) created earlier:
![](https://static.packt-cdn.com/products/9781789345018/graphics/36015281-a47a-45fc-a874-4d35bb49f0ef.png)
- In
Container to load balance
, click onAdd to load balancer
for theContainer name:port
to be created ashello-world:80:80
, as shown in the following screenshot:
![](https://static.packt-cdn.com/products/9781789345018/graphics/f04d783d-b913-4be6-84a1-b9ad3a42b65a.png)
- Additional fields get displayed to configure the container to load balance. Select
80:HTTP
as theListener port
, as shown in the following screenshot. - Select
Target group name
ashello-world-tg
, which is the target group created when the load balancer was created, as shown in the following screenshot...