Deploying ALB Ingress Controller

Helm

We will use Helm to install the ALB Ingress Controller.

Add helm incubator repository

helm repo add incubator http://storage.googleapis.com/kubernetes-charts-incubator
# Get the VPC ID
export VPC_ID=$(aws eks describe-cluster --name eksworkshop-eksctl --query "cluster.resourcesVpcConfig.vpcId" --output text)


helm --namespace 2048-game install 2048-game \
  incubator/aws-alb-ingress-controller \
  --set image.tag=${ALB_INGRESS_VERSION} \
  --set awsRegion=${AWS_REGION} \
  --set awsVpcID=${VPC_ID} \
  --set rbac.create=false \
  --set rbac.serviceAccountName=alb-ingress-controller \
  --set clusterName=EKS-fargate

Execute the following command to watch the progress by looking at the deployment status:

kubectl -n 2048-game rollout status deployment/2048-game-aws-alb-ingress-controller

Output:

Waiting for deployment “2048-game-aws-alb-ingress-controller” rollout to finish: 0 of 1 updated replicas are available… deployment “2048-game-aws-alb-ingress-controller” successfully rolled out

kubectl get pods -n 2048-game

Output:


NAME                                                    READY   STATUS    RESTARTS   AGE
2048-deployment-7f77b47f7-fvrqj                         1/1     Running   0          17m
2048-deployment-7f77b47f7-pvjpk                         1/1     Running   0          17m
2048-deployment-7f77b47f7-pvlmv                         1/1     Running   0          17m
2048-deployment-7f77b47f7-q66n9                         1/1     Running   0          17m
2048-deployment-7f77b47f7-x6sjc                         1/1     Running   0          17m
2048-game-aws-alb-ingress-controller-569d6cbfc8-nfh6c   1/1     Running   0          69s