š Completed an end-to-end Kubernetes project. Explored the deployment of a 2048 Game Application on AWS EKS (Elastic Kubernetes Service) using Fargate and an Application Load Balancer Ingress Controller.
š ļø Steps involved:
- Set up prerequisites: Install awscli, eksctl, and kubectl,helm
- Installed EKS with Fargate. **ekctl create cluster --name --region --fargate Note:: fargate is serverless computing service like aws lamda,choosing fargate service other than ec2 is cost optimized
- Acquired or updated the KubeConfig file for CLI access to cluster resources. **aws eks update-kubeconfig --name --region
- For deploying the pods other then the default namespaces we need to create the new namespace..for this deploy the new fargate profile and allow the pods to run on the new namespace .. **for eg namespace :: game-2048. 5.Create the custom fargate profile allowing the namespace created to deploy the pods in that.. eksctl create fargateprofile \ --cluster prod-web-hyd-eks \ --region=ap-south-2 \ --name fargate-1 \ --namespace game-2048
- Deployed the 2048 app as a K8s Pod, created a corresponding service, and set up an Ingress resource for traffic routing. kubectl apply -f
- Implemented the Ingress Controller to automate ALB Controller creation.
- Established an IAM OIDC Provider to grant ALB Controller access to the Application Load Balancer.
- Created a service account with an IAM Role and Policy for Load Balancer access. $ eksctl create iamserviceaccount --cluster=prod-web-hyd-eks --namespace=game-2048 --name=aws-load-balancer-controller --role-name awsELKloadbalancerRole --attach-policy-arn= --approve
- Deployed ALB Controller using Helm Charts, interfacing with the service account. helm install aws-load-balancer-controller eks/aws-load-balancer-controller \ -n game-2048 \ --set clusterName= \ --set serviceAccount.create=false \ --set serviceAccount.name= \ --set region= \ --set vpcId=
- Accessed the deployed 2048 application with the DNS URL of the Load Balancer in the public subnet.
#kubernetes
#AWS
#EKS
#DevOps
#CloudComputing .š®š¢
Top comments (0)