- eksctl-config.yaml: This file contains the configuration for creating the EKS cluster using eksctl.
- deployment.yaml: This file contains the Kubernetes deployment configuration for deploying the Mario Docker image.
- service.yaml: This file contains the Kubernetes service configuration for exposing the Mario application.
Use the eksctl
tool to create the EKS cluster. Modify the eksctl-config.yaml
file with your desired configurations and run the following command:
eksctl create cluster -f eksctl-config.yaml
To configure kubectl
to use the newly created cluster, use the following command:
aws eks --region ap-south-1 update-kubeconfig --name mario-cluster
Apply the deployment.yaml
file to deploy the Mario Docker image to the EKS cluster:
kubectl apply -f deployment.yaml
Apply the service.yaml
file to expose the Mario service:
kubectl apply -f service.yaml