Skip to main content

Command Palette

Search for a command to run...

Deploy a Voting App on AWS with EKS: A Step-by-Step Guide

Published
โ€ข1 min read

1. Prerequisites

Make sure you have these installed:

  1. AWS CLI: Install AWS CLI

  2. kubectl: Install kubectl

  3. eksctl: Install eksctl

  4. Docker: Install Docker

Create EKS Cluster

  1. Log in to AWS CLI:

$ aws configure

  1. Create the EKS Cluster:

$ eksctl create cluster --name myVotingAppCluster --region us-east-1 --nodes 2 --node-type t3.medium

Note: Using the eksctl command to create a cluster can take about 15โ€“20 minutes

  1. Verify the EKS Cluster:

    $ kubectl get nodes

    Clone the Docker Voting App

    $ git clone https://github.com/dockersamples/example-voting-app.git cd example-voting-app

    Deploy all deployment and service manifest files:

    Verify all deployment and services:

    $ kubectl get pods

    $ kubectl get svc

    Verify on AWS dashboard under cluster

    Deployments:

    Services: