What is Amazon EKS
Amazon EKS is a fully managed container orchestration service. EKS allows you to quickly deploy a production ready Kubernetes cluster in AWS, deploy and manage containerized applications more easily with a fully managed Kubernetes service.
EKS takes care of Master node/control plane. We need to manage worker nodes.
Please watch the steps in YouTube channel:
Pre-requisites:
You can use Windows, Macbook or any Ubuntu or Red Hat EC2 instance to setup the below tools.
-
Install AWS CLI – Command line tools for working with AWS services, including Amazon EKS.
-
Install eksctl
– A command line tool for working with EKS clusters that automates many individual tasks. -
install kubectl – A command line tool for working with Kubernetes clusters.
Create AWS Access Keys
aws configure
command is the fastest way to set up your AWS CLI installation for general
use.
Make sure you do not have any IAM role attached to the EC2 instance. You can remove IAM role by going into AWS console and Detach the IAM role.
aws configure
the AWS CLI prompts you for four pieces of information:
access key
,
secret access key
,
AWS Region
, and
output format
.
Create EKS Cluster using eksctl
eksctl create cluster --name demo-eks --region us-east-2 --nodegroup-name my-nodes --node-type t3.small --managed --nodes 2
the above command should create a EKS cluster in AWS, it might take 15 to 20 mins. The eksctl tool uses CloudFormation under the hood, creating one stack for the EKS master control plane and another stack for the worker nodes.
eksctl get cluster --name demo-eks --region us-east-2
This should confirm that EKS cluster is up and running.
Connect to EKS cluster
kubectl get nodes
kubectl get ns
Deploy Nginx on a Kubernetes Cluster
Let us run some apps to make sure they are deployed to Kuberneter cluster.
The below command will create deployment:
kubectl create deployment nginx --image=nginx
View Deployments
kubectl get deployments
Delete EKS Cluster using eksctl
eksctl delete cluster --name demo-eks --region us-east-2
the above command should delete the EKS cluster in AWS, it might take a few mins to clean up the cluster.
Errors during Cluster creationeksctl delete cluster --name demo-eks --region us-east-2
A web run will rely upon workers to store your data after which you can submit it to the web. Your site won't be online however much another person's if a web have is infamous at low costs yet additionally for having their workers down a ton. https://onohosting.com/
ReplyDeleteSo regularly you can value your things near the most reduced all out cost, perhaps be the primary thing in the rundown and draw in more purchasers.
ReplyDeletehttps://ww.soap2day.top/