0
0
AWScloud~10 mins

Deploying workloads on EKS in AWS - Step-by-Step Execution

Choose your learning style9 modes available
Process Flow - Deploying workloads on EKS
Create EKS Cluster
Configure kubectl
Write Deployment YAML
Apply Deployment
Pods start running
Verify workload status
Done
This flow shows the steps to deploy an application on EKS: create cluster, configure access, write deployment, apply it, pods run, verify.
Execution Sample
AWS
eksctl create cluster --name my-cluster --region us-west-2
aws eks --region us-west-2 update-kubeconfig --name my-cluster
kubectl apply -f deployment.yaml
kubectl get pods
Creates an EKS cluster, configures kubectl, deploys a workload using a YAML file, then checks pod status.
Process Table
StepActionCommand/DescriptionResult/State
1Create EKS Clustereksctl create cluster --name my-cluster --region us-west-2Cluster 'my-cluster' created and ready
2Configure kubectlaws eks --region us-west-2 update-kubeconfig --name my-clusterkubectl configured to access cluster
3Write Deployment YAMLdeployment.yaml with container image and replicasDeployment manifest ready
4Apply Deploymentkubectl apply -f deployment.yamlDeployment created, pods starting
5Pods start runningkubectl get podsPods in Running state
6Verify workloadkubectl describe deployment my-appDeployment ready with desired replicas
7ExitAll pods running and workload deployedDeployment successful, process complete
💡 All pods are running and deployment is successful, so deployment process ends.
Status Tracker
VariableStartAfter Step 1After Step 4After Step 5Final
Cluster StateNoneCreatedCreatedCreatedCreated
kubectl ConfigNoneConfiguredConfiguredConfiguredConfigured
Deployment StatusNoneNoneCreatedPods RunningPods Running
Pods StateNoneNoneNoneRunningRunning
Key Moments - 3 Insights
Why do we need to configure kubectl after creating the cluster?
kubectl needs cluster access info to communicate with EKS. Step 2 shows configuring kubectl after cluster creation.
What happens if pods do not reach Running state after applying deployment?
Pods may be pending or failing. Step 5 shows pods starting; if not Running, check pod logs or events.
Why is writing a deployment YAML important before applying?
Deployment YAML defines what to deploy and how. Step 3 prepares this manifest, which kubectl uses in Step 4.
Visual Quiz - 3 Questions
Test your understanding
Look at the execution table, what is the cluster state after Step 1?
AConfigured
BNone
CCreated
DRunning
💡 Hint
Check the 'Cluster State' variable in variable_tracker after Step 1.
At which step do pods start running?
AStep 3
BStep 5
CStep 4
DStep 2
💡 Hint
Look at the 'Pods State' variable in variable_tracker and the execution_table rows.
If kubectl is not configured, what will happen when applying deployment?
Akubectl cannot connect to cluster, deployment fails
BDeployment applies successfully
CPods start running anyway
DCluster is automatically configured
💡 Hint
Refer to Step 2 and Step 4 in execution_table and kubectl Config variable in variable_tracker.
Concept Snapshot
Deploying workloads on EKS:
1. Create EKS cluster (eksctl).
2. Configure kubectl to access cluster.
3. Write deployment YAML with app details.
4. Apply deployment with kubectl.
5. Pods start running and workload is live.
Always verify pod status after deployment.
Full Transcript
To deploy workloads on EKS, first create a cluster using eksctl. Then configure kubectl to connect to the cluster. Next, write a deployment YAML file describing your application and how many replicas you want. Apply this deployment using kubectl apply. The pods will start running in the cluster. Finally, verify the pods are running and the deployment is ready. This process ensures your application runs on the managed Kubernetes cluster.