Quantcast
Channel: Cloud Training Program
Viewing all articles
Browse latest Browse all 1892

Amazon EKS (Elastic Kubernetes Service): A Kubernetes service by Amazon AWS

$
0
0

In this blog, I am going to cover the Kubernetes service by Amazon on AWS. Kubernetes is an open-source platform for managing containerized workloads and services. Kubernetes takes care of scaling and failover for your application running on the container. Kubernetes cluster is used to deploy containerized applications on the cloud. Kubernetes uses the same underlying infrastructure, OS,  and container.

Check out the differences between Kubernetes and Docker.
Click here to subscribe

Overview Of Amazon EKS

Architecture of EKS

Amazon EKS is a managed service that is used to run Kubernetes on AWS. Using EKS users don’t have to maintain a Kubernetes control plan on their own. It is used to automate the deployment, scaling, and maintenance of the containerized application. It works with most operating systems.

EKS is integrated with various AWS services:

  • ECR (Elastic Container Registry) for container images.
  • Elastic Load Balancer for distributing traffic.
  • IAM for providing authentication and authorization.
  • VPC (Virtual Private Cloud) for isolating resources.

Also check: The difference between CKAD vs CKA

Amazon EKS Components

eks

1) Nodes: A node is a physical or virtual machine. In EKS both Master Node and Worker Node are managed by EKS. There are two types of nodes.

  • Master Nodes: A Master Node is a collection of components like Storage, Controller, Scheduler, API server that makes up the control plan of Kubernetes. The EKS itself creates the Master Node and manages it.
    • API Servers: It controls the API servers whether it is kubctl (Kubernetes CLI) or rest API.
    • etcd: It is a highly available key-value store that is distributed among the Kubernetes cluster to store configuration data.
    • Controller Manager: Cloud controller Manager is used to manage the VMs, storage, databases, and other resources associated with the Kubernetes cluster. It makes sure that you are using as much as the container needed at a point in time. It keeps a count of containers used and also records the state.
    • Scheduler: It validates what and when the work needs to be done. It integrates with the Controller manager and API servers.
  • Worker Nodes: The worker nodes in a cluster are the machines or physical servers that run your applications. The user is responsible for creating and managing worker nodes.
    • kublet: It controls the flow to and fro from the API. It makes sure containers are running in the pod.
    • kubproxy: It includes networking rules and access control. It is like a firewall.

master & worker nodes

2) Pods: A group of containers is called pods. They share networking, storage, IP address, and port spaces.

3) DaemonSet: It makes sure that all node runs a copy of a certain pod. It is like a monitoring tool.

Learn more about Kubernetes Architecture.

Master Nodes or Control Plane

The Control Plane consists of three K8s master nodes that run in three different availability zones (AZs). All incoming traffic to K8s API comes through the network load balancer (NLB). It runs on the virtual private cloud controlled by Amazon. So, the Control Panel can’t be managed directly by the organization and is fully managed by AWS.

Check out: All you need to know about Docker Storage

Worker Nodes or Data Plane

Worner Nodes run on the Amazon EC2 instances in the virtual private cloud controlled by the organization. A cluster of worker nodes runs an organization’s containers while the control plane manages and monitors when and where containers are started.

EKS usage algorithm

Control Panel & Worker Node Communication

Amazon EKS Workflow

eks workflow

  1. Provision EKS cluster using AWS Console, AWS CLI, or one of the AWS SDKs.
  2. Deploy worker nodes to the EKS cluster. There is already a predefined template that will automatically configure nodes.
  3. Now we configure Kubernetes tools such as kubctl to communicate with the Kubernetes cluster.
  4. We are now all set to deploy an application on the Kubernetes cluster.

Note: To know 10 things about EKS on AWS, click here.

Also read: Comparison between Docker vs VM, difference of both the machines you should know.

Create EKS Kubernetes Cluster Using GUI

The important steps involved are:
1) Creating a Master Node
2) Installing and Configuring AWS CLI & kubectl
3) Creating a Worker Node

The post Amazon EKS (Elastic Kubernetes Service): A Kubernetes service by Amazon AWS appeared first on Cloud Training Program.


Viewing all articles
Browse latest Browse all 1892

Trending Articles