How to Deploy and Manage an Amazon EKS Cluster
Deploy an Amazon EKS cluster with an eksctl config file, grant access with access entries, and manage upgrades, node groups and add-ons step by step.
To deploy an Amazon EKS cluster, describe it in an eksctl config file (version, region, VPC, node groups, add-ons), run eksctl create cluster -f cluster.yaml, grant people access with EKS access entries, and then manage it through version upgrades, node rotations and add-on updates. Treat the cluster as code from day one so every change is reviewable.
This is the hands-on build and day-2 operations guide. If you are still deciding whether EKS is right for you, start with what Amazon EKS is and how it simplifies Kubernetes on AWS. Once the cluster runs, EKS monitoring and scaling best practices picks up where this article stops. For the Kubernetes building blocks themselves, see 12 must-know Kubernetes architecture components.
Key takeaways
- eksctl with a
ClusterConfigYAML file is the quickest repeatable way to create a cluster. Terraform and CloudFormation are equally valid for larger estates. - Pick the Kubernetes version deliberately. Each EKS minor version gets 14 months of standard support and then 12 months of extended support at extra cost.
- Grant cluster access with EKS access entries rather than editing the
aws-authConfigMap by hand. - Upgrades go one minor version at a time: control plane first, then nodes, then add-ons and clients.
- In-place control plane upgrades can be rolled back to the previous minor version within 7 days.
- Plan subnet sizes up front. Pods take VPC IP addresses, and upgrades need spare addresses too.
Before you create anything
Tools on your workstation
- AWS CLI v2, configured with credentials that can create EKS, EC2, IAM and CloudFormation resources.
- eksctl, the official CLI for EKS, now documented in the AWS EKS docs.
- kubectl within one minor version of the cluster you will run.
Decisions to make on paper
| Decision | Options | Guidance |
|---|---|---|
| Kubernetes version | Any version in standard or extended support | Start on the newest version in standard support unless an application blocks it |
| VPC | New VPC from eksctl, or existing subnets | Existing subnets for production so network teams own the CIDRs |
| Compute | EKS Auto Mode, managed node groups, self-managed nodes, Fargate | Managed node groups or Auto Mode for most teams |
| API endpoint | Public, private, or both | Private or restricted public CIDRs for production |
| Access model | Access entries, legacy ConfigMap | Access entries |
Check the current list of versions with aws eks describe-cluster-versions. At the time of writing, the EKS version page lists 1.34 to 1.37 in standard support and 1.31 to 1.33 in extended support.
Step 1: Write the cluster config
Running eksctl create cluster with no file creates a cluster with one managed node group of two m5.large nodes in your default region. That is fine for a demo. For anything you will keep, write a file:
apiVersion: eksctl.io/v1alpha5
kind: ClusterConfig
metadata:
name: payments-dev
region: ap-south-1
version: "1.36"
vpc:
subnets:
private:
ap-south-1a: { id: subnet-0aaa1111 }
ap-south-1b: { id: subnet-0bbb2222 }
ap-south-1c: { id: subnet-0ccc3333 }
managedNodeGroups:
- name: general
instanceType: m5.large
minSize: 2
desiredCapacity: 3
maxSize: 6
privateNetworking: true
labels: { workload: general }
addons:
- name: vpc-cni
- name: coredns
- name: kube-proxy
Commit this file to a repository. Every later change, such as a new node group or an add-on version, goes through a pull request.
Step 2: Create the cluster
eksctl create cluster -f cluster.yaml
eksctl builds CloudFormation stacks for the control plane and each node group, then writes a kubeconfig entry (to $KUBECONFIG or ~/.kube/config by default). Expect the run to take a while. When it finishes, check:
kubectl get nodes -o wide
kubectl get pods -n kube-system
aws eks describe-cluster --name payments-dev --query "cluster.status"
If you use the us-east-1 region and see UnsupportedAvailabilityZoneException, the eksctl docs suggest passing the zones it recommends with --zones.
Step 3: Give people and pipelines access
The IAM identity that created the cluster has admin access. Everyone else needs an access entry. AWS calls access entries the best way to grant users access to the Kubernetes API, and they replace hand-editing the aws-auth ConfigMap.
aws eks create-access-entry \
--cluster-name payments-dev \
--principal-arn arn:aws:iam::111122223333:role/platform-admins
aws eks associate-access-policy \
--cluster-name payments-dev \
--principal-arn arn:aws:iam::111122223333:role/platform-admins \
--policy-arn arn:aws:eks::aws:cluster-access-policy/AmazonEKSClusterAdminPolicy \
--access-scope type=cluster
For application teams, scope the policy to a namespace (type=namespace) or map the role to a Kubernetes group and use RBAC. Keep the list of admin roles short, and use roles rather than individual IAM users. Our list of best practices to secure Kubernetes clusters covers RBAC design in more depth.
Step 4: Deploy a test workload
kubectl create deployment web --image=nginx:stable --replicas=3
kubectl expose deployment web --port=80 --type=ClusterIP
kubectl get pods -l app=web -o wide
For internet-facing traffic, install the AWS Load Balancer Controller and use an Ingress or a Service of type LoadBalancer. Check the controller's documentation for the IAM permissions it needs.
Choosing compute for the cluster
| Option | Who manages the nodes | Good fit | Watch out for |
|---|---|---|---|
| EKS Auto Mode | AWS handles provisioning, scaling and node updates | Teams that want minimal node operations | Less control over node-level customization |
| Managed node groups | AWS manages the Auto Scaling group lifecycle; you trigger updates | Most production clusters | You still choose AMIs, sizes and update timing |
| Self-managed nodes | You | Custom AMIs, special hardware, strict OS control | No console hint that nodes need updating |
| Fargate | AWS, per pod | Small or bursty workloads without DaemonSets | Pods must be redeployed to pick up a new kubelet |
Container runtime choice is mostly settled on EKS-optimized AMIs, but if you build your own nodes, see choosing a container runtime for Kubernetes.
Managing the cluster: day-2 tasks
Version upgrades
EKS follows the upstream Kubernetes release cycle, and the community ships a new minor version roughly every four months. Each EKS version receives 14 months of standard support, then 12 months of extended support, which is enabled by default and billed per cluster hour. If a cluster reaches the end of extended support, AWS upgrades the control plane automatically, without notice of the exact time. Plan upgrades so that never happens.
The upgrade order from the AWS documentation:
- Check readiness. Use EKS upgrade insights to find deprecated API usage and other blockers, and read the Kubernetes deprecated API migration guide.
- Make sure node versions match the control plane before you start.
- Upgrade the control plane by one minor version.
- Upgrade the nodes to the same version.
- Update cluster applications such as the Cluster Autoscaler.
- Update the VPC CNI, CoreDNS and kube-proxy add-ons.
- Update clients such as kubectl.
# Control plane, one minor version at a time
eksctl upgrade cluster --name payments-dev --version 1.37 --approve
# Equivalent with the AWS CLI
aws eks update-cluster-version --name payments-dev --kubernetes-version 1.37 --region ap-south-1
# Managed node group
eksctl upgrade nodegroup --cluster payments-dev --name general --kubernetes-version 1.37
The AWS upgrade guide states the eksctl procedure needs eksctl 0.215.0 or later. An upgrade needs up to five available IP addresses in the cluster subnets, and once started it cannot be paused. If the health checks fail, EKS reverts and the cluster stays on the old version. If problems appear afterwards, you can roll back to the previous minor version within 7 days.
Add-on updates
Use EKS add-ons for the VPC CNI, CoreDNS and kube-proxy so AWS publishes compatible versions. List what is available for your version before updating:
aws eks describe-addon-versions --addon-name vpc-cni --kubernetes-version 1.37
eksctl update addon --cluster payments-dev --name vpc-cni
Node rotation and patching
Managed node groups replace instances in a rolling way when you update the AMI release or version. Set Pod Disruption Budgets on your workloads so a rollout cannot take every replica down at once. The same budgets can block cluster deletion; eksctl has a --disable-nodegroup-eviction flag for that case.
Keeping the config file and the cluster in sync
The biggest day-2 risk is drift: someone changes a node group in the console, and the YAML in Git no longer describes reality. Agree on a rule that every change starts as a pull request to cluster.yaml, and apply it with eksctl commands that read the file, such as eksctl create nodegroup -f cluster.yaml for new node groups and eksctl update addon -f cluster.yaml for add-ons. Larger platform teams often move the whole cluster definition into Terraform for the same reason, so that a plan shows every change before it happens.
Cost control
- Avoid extended support charges by staying on standard-support versions.
- Right-size node groups using real requests and usage, and add Spot capacity for fault-tolerant workloads.
- Delete test clusters with
eksctl delete cluster -f cluster.yaml --waitso failures are reported instead of leaving stray stacks.
Troubleshooting the build
| Symptom | Likely cause | Check |
|---|---|---|
kubectl returns Unauthorized | No access entry for your IAM role | aws sts get-caller-identity, then the cluster's access entries |
| Nodes never join | Subnet routing or security groups | NAT or VPC endpoints for private subnets, node security group rules |
| Pods stuck Pending with IP errors | Subnets out of addresses | Free IPs per subnet; consider larger subnets or prefix delegation |
| Upgrade fails to start | Fewer than five free IPs or deleted subnets | Subnets listed on the cluster |
| Delete hangs | Load balancers or ENIs still using the VPC | Delete Services of type LoadBalancer first; use --wait |
Networking issues inside the cluster follow the same patterns as any Kubernetes cluster; our 12 steps to debug networking in Kubernetes walks through them.
Learning path
Building EKS well needs both Kubernetes administration and AWS knowledge. The CKA training covers cluster administration, upgrades and troubleshooting, and the AWS DevOps Engineer Professional training covers the AWS automation around it. Both run in the Kharadi, Pune classroom and live online.
Frequently asked questions
What is the fastest way to create an EKS cluster?
Run eksctl create cluster. With no options it creates a cluster with one managed node group of two m5.large nodes in your default region. Use a config file for anything you keep.
How long is an EKS Kubernetes version supported?
14 months of standard support from its EKS release, then 12 months of extended support at additional cost, for 26 months in total.
Can I skip versions when upgrading EKS?
No. The control plane upgrades one minor version at a time, so going from 1.35 to 1.37 means two upgrades.
Can I roll back an EKS upgrade?
Yes, for in-place upgrades. You can roll back to the previous minor version within 7 days of the upgrade completing. Clusters auto-upgraded at the end of extended support cannot be rolled back.
Should I use access entries or the aws-auth ConfigMap?
Access entries. AWS describes them as the best way to grant access to the Kubernetes API, and they are managed through the EKS API, CloudTrail and infrastructure as code.
Do managed node groups upgrade automatically with the control plane?
No. You update managed node groups yourself after the control plane. EKS Auto Mode is different: it updates its managed nodes incrementally after a control plane upgrade.
How is this different from monitoring and scaling EKS?
This guide covers building the cluster and keeping it current. Autoscaling, Karpenter and observability are covered in our separate EKS monitoring and scaling guide.
Official references
What's Your Reaction?
Like
0
Dislike
0
Love
0
Funny
0
Angry
0
Sad
0
Wow
0