Creating Target Group

Create a target group to route requests to one or more registered targets. When you create a listener rule, you must specify a target group and conditions. When the rule condition is met, traffic is forwarded to the corresponding target group.

  1. Sign in to the AWS Management Console and open EC2.
  2. Navigate to the Target groups from the right panel.
  3. Click Create target group.
  4. Under Basic configuration, select the Instance target type.
  5. Enter a name for the target group.
  6. Select the Protocol as HTTP and enter the Port number as 80.
  7. Select the VPC with the instances that must be included in the target group.
    Note: The VPC must be the same as the instance VPC.
  8. Retain the Health checks as default and click Next.
  9. The available instances section shows the worker node instances. Select the instance and enter the node port number as 31000 under port section.
  10. Click Include as pending below to add the selected instance to target group.
  11. Click Create target group.
  12. Ensure that the target group Health status is healthy.
    Target Groups