Amazon EKS Cluster Configure node group
Here we have our cluster in AEKS
clusters name ( test-cluster)
click on cluster name
compute to add nodes
click on compute
add a node group
scroll down add node group
Step 1: - Configure node group
Node group configuration
Step 2:- set compute and scaling configuration
node group compute configuration
Step 3: - Specify networking
I will go with the default setting.
Step 4:- Review and Create
Scroll down Click on Create.
It will start the creation
Finally, it created EKS Cluster
on master node check below commands and execute if required.
ubuntu@ip-172-31-34-141:~$ kubectl
Command 'kubectl' not found, but can be installed with:
ubuntu@ip-172-31-34-141:~$ sudo snap install kubectl --classic
kubectl 1.27.3 from Canonical✓ installed
ubuntu@ip-172-31-34-141:~$ aws eks update-kubeconfig --region ap-south-1 --name test-cluster
Command 'aws' not found, but can be installed with:
sudo snap install aws-cli # version 1.15.58, or
sudo apt install awscli # version 1.22.34-1
ubuntu@ip-172-31-34-141:~$ sudo snap install aws-cli --classic
aws-cli (v2/stable) 2.13.0 from Amazon Web Services (aws✓) installed
ubuntu@ip-172-31-34-141:~$ aws configure
AWS Access Key ID [None]: ***
AWS Secret Access Key [None]: **
Default region name [None]: ***
Default output format [None]:
ubuntu@ip-172-31-44-226:~/.kube$ aws eks update-kubeconfig --region ap-south-1 --name test-cluster
ubuntu@ip-172-31-34-141:~$ aws eks update-kubeconfig --region ap-south-1 --name test-cluster
Added new context arn:aws:eks:ap-south-1:***:cluster/test-cluster to /home/ubuntu/.kube/config
Enable kubectl
to communicate with your cluster by adding a new context to the kubectl
config
file.
ubuntu@ip-172-31-44-226:~/.kube$ kubectl get nodes
NAME STATUS ROLES AGE VERSION
ip-172-31-42-182.ap-south-1.compute.internal Ready <none> 7m15s v1.27.1-eks-2f008fe
ip-172-31-9-75.ap-south-1.compute.internal Ready <none> 7m25s v1.27.1-eks-2f008fe
dd