DEV Community

Deploy of Application in Nodes for Amazon Elastic Kubernetes Service

“ I have checked the documents of AWS to get the solution for deploy of application in nodes for amazon elastic kubernetes service, in such scenario it is possible to deploy application after creation of amazon eks cluster and node with proper iam permissions. In terms of cost, need to pay for services integrated with the scenario.”

Amazon Elastic Kubernetes Service is a managed kubernetes service to run kubernetes in the AWS cloud and on-premises data centers. In the cloud, Amazon EKS automatically manages the availability and scalability of the kubernetes control plane nodes responsible for scheduling containers, managing application availability, storing cluster data and other key tasks. You can take advantage of all the performance, scale, reliability and availability of AWS infrastructure as well as integrations with AWS networking and security services. On-premises, EKS provides a consistent, fully supported kubernetes solution with integrated tooling and simple deployment to AWS Outposts, VM or bare metal servers.

In this post, you will experience how to deploy of application in nodes for amazon elastic kubernetes service. Here I have created a cluster and node group in amazon eks with iam roles.

Architecture Overview

Image description
The architecture diagram shows the overall deployment architecture with data flow, amazon eks, cluster, node group, ec2 instance and cloudwatch logs.

Solution overview

The blog post consists of the following phases:

  1. Create of IAM Cluster Role and Cluster in Amazon Elastic Kubernetes Service
  2. Create of IAM Node Role and Add of Node Group in Cluster Created
  3. Deploy and Test a Nginx Application in Nodes of Cluster

Phase 1: Create of IAM Cluster Role and Cluster in Amazon Elastic Kubernetes Service

  1. Open the console of IAM, create a role for the cluster with required aws managed policy. Also open the console of Amazon EKS, create a cluster in required vpc with configurations and add-ons.

Image description

Image description

Image description

Image description

Image description

Image description

Image description

Image description

Image description

Image description

Image description

Image description

Image description

Image description

Image description

Image description

Phase 2: Create of IAM Node Role and Add of Node Group in Cluster Created

  1. Open the console of IAM, create a role for node with required aws managed policies. Also open the cluster created in eks, add a node group with required configurations.

Image description

Image description

Image description

Image description

Image description

Image description

Image description

Image description

Image description

Image description

Image description

Image description

Image description

Image description

Phase 3: Deploy and Test a Nginx Application in Nodes of Cluster

Image description

Image description

Image description

Image description

Image description

Image description

Image description

Clean-up

Delete of Amazon EKS(Node Group and Cluster), IAM role and Cloudwatch log group.

Pricing

I review the pricing and estimated cost of this example.

Cost of Elastic Container Service for Kubernetes = $0.58

Cost of CloudWatch = $0.139

Cost of Elastic Compute Cloud = $1.21

Total Cost = $1.929

Summary

In this post, I showed “how to deploy of application in nodes for amazon elastic kubernetes service”.

For more details on Amazon EKS, Checkout Get started Amazon EKS, open the Amazon EKS console. To learn more, read the Amazon EKS documentation.

Thanks for reading!

Connect with me: Linkedin
Image description

Top comments (0)