Coder Social home page Coder Social logo

votingappkubernetes's Introduction

Vote-App-K8s

Deploying voting app using K8s

  1. Launch an EC2 with specs- t2.medium and 20gb storage
  2. Create an IAM role with Administrator access and attach it with the ec2 machine

########## Installations on the ec2 ###################### Run the following command for the required installations kubectl Python3-Pip eksctl awscli

  1. sudo apt-get update
  2. sudo apt install python3-pip (Install Python3-Pip)
  3. pip3 install awscli --upgrade --user (use Sudo if not run in the first place)
  4. sudo rm /usr/local/bin/kubectl (removing the Kubectl)
  5. https://kubernetes.io/docs/tasks/tools/install-kubectl-linux/ (link to download Kubectl consists of 3 steps)
  6. sudo apt install awscli (Before running aws eks update command check awscli version. If aws cLi is not present install it with the mentioned command)
  7. https://docs.aws.amazon.com/eks/latest/userguide/eksctl.html (to download eksctl)

########## Cluster creation ######################

  1. eksctl create cluster -f cluster.yaml
  2. kubectl create ns local
  3. kubectl apply -f vote.yaml --namespace=local
  4. kubectl apply -f redis.yaml --namespace=local
  5. kubectl apply -f db.yaml --namespace=local
  6. kubectl apply -f worker.yaml --namespace=local
  7. kubectl apply -f result.yaml --namespace=local

votingappkubernetes's People

Contributors

samarthr8 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.