EKS Installation steps in amazon linux
To install Amazon EKS (Elastic Kubernetes Service) on Amazon Linux, you generally follow a set of steps. Note that the following instructions might become outdated as technologies evolve, so it's always a good idea to refer to the official AWS documentation for the most up-to-date information.
Here's a general guide to installing Amazon EKS on Amazon Linux:
Prerequisites:
AWS CLI: Make sure you have the AWS Command Line Interface installed. You can install it using the following command:
sudo yum install -y aws-cli
kubectl: Install
kubectl
, the command-line tool for interacting with Kubernetes clusters:sudo curl -o kubectl https://amazon-eks.s3.us-west-2.amazonaws.com/1.21.2/2021-07-05/bin/linux/amd64/kubectl sudo chmod +x ./kubectl sudo mv ./kubectl /usr/local/bin/kubectl
Create an Amazon EKS Cluster:
Create an Amazon EKS cluster with eksctl:
Install
eksctl
:sudo yum install -y eksctl
Create an EKS cluster:
eksctl create cluster \ --name <cluster-name> \ --version 1.21 \ --region <region> \ --nodegroup-name <node-group-name> \ --node-type <node-instance-type> \ --nodes <num-nodes>
Replace placeholders (
<cluster-name>
,<region>
,<node-group-name>
,<node-instance-type>
,<num-nodes>
) with your desired values.Configure
kubectl
for your cluster:aws eks --region <region> update-kubeconfig --name <cluster-name>
Test Your Cluster:
Run the following command to see if your nodes are ready:
kubectl get nodes
Cleaning Up:
When you're done with your cluster, you can delete it with the following command:
eksctl delete cluster --name <cluster-name>
Remember to replace <cluster-name>
with your actual cluster name.