Coder Social home page Coder Social logo

kubernetes-apache-webapp's Introduction

Simple Apache Web App using EKS

Pre-requisite:

Set up a Jenkins CICD pipeline that built and publish a simple web application to DockerHub(codes for web app was download from startbootstrap.com)

In this project, I am using Kubernetes to orchestrate the deployment of a simple web app on the AWS platform. The image for the exercise was sources from my publicly repo on DockerHub (mooma/website:2.2) STEPS

  1. Create an EKS cluster without nodegroup using default settings.
    • eksctl create cluster --name playgound --region us-west-2 --version 1.24 --without-nodegroup
  2. Create a node group made up of three nodes eksctl create nodegroup
    --cluster playground-cluster
    --region us-west-2
    --name playground-ng
    --node-ami-family AmazonLinux2
    --node-type m5.large
    --nodes 3
    --nodes-min 3
    --nodes-max 4
    --ssh-access
    --ssh-public-key us-west2-key
  3. Create a deployment manifest for Apache webserver then run
    • kubectl apply -f deployment-name
  4. Create a service manifest with the service type loadbalancer listening on port 80, then run
    • kubectl apply -f service-name
  5. copy loadbalancer external ip and past in a browser
  6. Delete service
    • kubectl delete svc service-name
  7. Delete cluster
    • eksctl delete cluster --name cluster-name

kubernetes-apache-webapp's People

Contributors

mosesomaej 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.