export AWS_REGION=eu-central-1 # Define the AWS region
export CLUSTER_NAME=app # Cluster name
export KUBECONFIG=${HOME}/.kube/app # Define a new KUBECONFIG for the example
eksctl create cluster --name ${CLUSTER_NAME} --region ${AWS_REGION} --nodes 2 --node-type t2.medium --asg-access
specifying the --asg-access we enable the horizontal pod auto scalling
Install AWS Load Balancer Controller AWS Guide
Make sure you install Amazon VPC CNI
helm install cluster .
Troubleshoot Service
kubectl get all
make sure the service/packet-handler has an external-ip
kubectl describe service/packet-handler
make sure there is no error in the events section
after the install the aws needs about 10-15 min to create the nlb in the AWS
you can check the nlb status on the AWS EC2 page
you can also check the pods as target groups on the AWS EC2 page under the Target Groups tab