In this step, we will configure our EKS cluster.
arn:aws:iam::017820706022:user/chaunguyen-admin
to your IAM user used to connect to the EKS cluster.
ssh ubuntu@18.206.88.146 -i ~/.ssh/labBastionHostSSHKey01.pem
18.206.88.146
to your EC2’s Public IP address.~/.ssh/labBastionHostSSHKey01.pem
to the path of the Key pair you downloaded when creating your EC2 instance.sudo su
.aws eks update-kubeconfig --region <region-code> --name <my-cluster>
. + Change to your Region code. + Change to your EKS cluster name.
root@ip-10-0-1-234:~# aws eks update-kubeconfig --region us-east-1 --name labEKSCluster01
Added new context arn:aws:eks:us-east-1:017820706022:cluster/labEKSCluster01 to /root/.kube/config
root@ip-10-0-1-234:~# kubectl get nodes
NAME STATUS ROLES AGE VERSION
ip-10-0-11-248.ec2.internal Ready <none> 44h v1.30.2-eks-1552ad0
ip-10-0-12-93.ec2.internal Ready <none> 44h v1.30.2-eks-1552ad0