You can experience accessing nginx using ALB at EKS on Fargate.
refs: https://839.hateblo.jp/entry/2019/12/08/172020
- aws-cli
- eksctl
- kubectl
- jq
- envsubst
cp .envrc.tmpl .envrc
Set AWS_PROFILE
of .envrc.
# - Creating an EKS Cluster
# - Preparing to pass IAM permissions to the alb-ingress-controller pod
# - Deploy alb-ingress-controller
# - Deploy nginx app
make setup-cluster prepare-alb deploy-alb deploy-app
# wait until alb-ingress-controller pod is running
watch kubectl get po -n kube-system
# wait until ALB is made
kubectl logs -n kube-system $(kubectl get po -n kube-system -o name | grep alb | cut -d/ -f2) -f
# wait until the target group is healthy in the aws console
open http://$(kubectl get ing -o jsonpath='{.items[].status.loadBalancer.ingress[].hostname}')
There are cases where deletion of a VPC fails.
In that case, delete it manually.
# - Deleting ALB resources
# - Deleting nginx app resources
# - Deleting EKS Cluster
# - Deleting ALB Policy
make cleanup