Task : AWS EKS

Task : AWS EKS

Hello all! Here is my another task of AWS which is about Amazon EKS i.e. Elastic Kubernetes Service. This service is for management or orchestration purpose. Whenever your any of the pod fail it immediately launches and kubernetes is the one who do that and behind the scene kube-schedulers do that. Docker also provides Swarn for container orchestration. Kubernetes uses various container engines for it cause on then the o.s. or container can be launched within a second. Container engines are Podman, Docker, CRI-O but here it's Docker.So, let me So, the main intention of this EKS is we can use services of AWS such as EFS , EBS for storage purpose, ELB for traffic distribution which will make our app more good. So,let's start on practical where I had launched two pods one of database MySQL and other Wordpress where the data will be persistent and as we launch pod it's IP is dynamic so we may lost connectivity but in this case not because of the Public DNS name is given to the clients.

  1. Launching cluster by using eksctl command by use of cluster.yml file YAML is language which is imperative and it's Domain Specific Language for kubernetes. So, here I created one nodegroup having t2.micro instance type. Nodegroup is basically a group of nodes having same instance type.
No alt text provided for this image
No alt text provided for this image
No alt text provided for this image
No alt text provided for this image
No alt text provided for this image
No alt text provided for this image


So,in above there are two slaves launched in AWS having same instance type and also one cluster is created namely basic-cluster. EKS is fully managed service means the master node is managed by AWS and we don't have to worry about it's configuration.

2. I do some checking about pods and created one default namespace for this task and set it as current and updated config file.

No alt text provided for this image
No alt text provided for this image
No alt text provided for this image

3. Then I created one EFS system in AWS cause it was needed for storage purpose.

No alt text provided for this image
No alt text provided for this image


3. Then I created file and deployment files. The deployment files contain setting of load balancer as service and deployment. Also the efs yaml file.

No alt text provided for this image
No alt text provided for this image
No alt text provided for this image
No alt text provided for this image
No alt text provided for this image
No alt text provided for this image
No alt text provided for this image
No alt text provided for this image

4.Then there I created storage class and pvc by yml file. Also Load Balancer service was active.

No alt text provided for this image


No alt text provided for this image
No alt text provided for this image
No alt text provided for this image

There is always need of role so I created one as follows:

No alt text provided for this image
No alt text provided for this image

5. And then I just type the Public DNS name and the wordpress site was there.

No alt text provided for this image

Then I delete the cluster.

No alt text provided for this image

Thanks for reading.

To view or add a comment, sign in

More articles by Ankita Jamdade

Others also viewed

Explore content categories