Ingress

The final step in exposing the 2048-game service is to deploy an ingress.

wget https://raw.githubusercontent.com/kubernetes-sigs/aws-alb-ingress-controller/${ALB_INGRESS_VERSION}/docs/examples/2048/2048-ingress.yaml

Edit the 2048-ingress.yaml file. Under the existing alb.ingress.kubernetes.io/scheme: internet-facing line, add the line alb.ingress.kubernetes.io/target-type: ip.

ip mode will route traffic directly to the pod IP.

This will start provisioning an instance of Internet-facing Application Load Balancer. From your AWS Management Console, if you navigate to the EC2 dashboard and the select Load Balancers from the menu on the left-pane, you should see the details of the ALB instance similar to the following.

fargate alb