Coder Social home page Coder Social logo

devops-tomcat-reg-app's Introduction

DevOps Project README

Hey Folks 🖐️, This repository contains a DevOps project that leverages various technologies, including Terraform, Ansible, Docker, eksctl, EKS cluster, Helm, jenkins, and kubectl to automate the deployment and management of an application on Amazon EKS.

Table of Contents

  1. Introduction
  2. Project Design
  3. Tools
  4. Prerequisites
  5. Installation Guide
  6. Access Bootstrap Server
  7. Pictures

Introduction

This DevOps project aims to automate the provisioning, deployment, and management of applications on an Amazon EKS cluster using Terraform for infrastructure provisioning, Ansible for configuration management, Docker for containerization, eksctl for EKS cluster creation, kubectl for Kubernetes cluster management, Helm for package management, and Jenkins for continuous integration and continuous deployment (CI/CD).

In this project, Terraform is used to provision infrastructure, including 3 EC2 instances:

  • bootstrap-server: Used to install kubectl and eksctl, and build the EKS cluster.
  • ansible-server: Utilized for necessary configuration on the target hosts.
  • jenkins-agent: Employed to run Jenkins build jobs.

Helm is utilized to package Jenkins and the application, and the Helm charts are uploaded to an S3 bucket using Terraform.

Project Design

Alternative Image Alternative Image

Tools

  • Terraform (IaC)
  • Ansible (Configuration Management)
  • Docker (Containerization Application)
  • Kubernetes (Containers Orchestration)
  • Helm (Package Manager)
  • Jenkins (CI/CD)

Prerequisites

  • Terraform must to be installed

Installation Guide

  1. Download or clone the repository to your local machine.

  2. Install Terraform your local machine if you haven't already done so.

  3. Make the necessary changes in the provider.tf file, specifically the project name and region, to match your own project settings

  4. Navigate to the Terraform directory and initialize it by running the command terraform init

  5. Run the command terraform validate to validate your terraform code , then terraform plan to review the infrastructure changes that terraform will apply.

  6. After reviewing the changes, run the command terraform apply to apply the changes to your infrastructure

Note: this guide assumes that you have a basic understanding of Docker, Terraform, and AWS Platform.

Access Bootstrap Server

  1. To ssh into the vm-instance run this command
    ssh -o StrictHostKeyChecking=no -i bootstrap-key.pem ec2-user@<ec2-instance-ip>
  • Note: You Will find that the kubectl already installed using script created by eksctl. no need to install it manually
  • Note: You Will find that the ingress controller already installed using script created by helm. no need to install it manually
  1. Install Helm Charts for jenkins and application using shell script run ./install-charts.sh

  2. After installation the helm charts for jenkins and application

  • Run this command to get the loadbalancer-ip for application: kubectl get ingress/<release-name> -o jsonpath='{.status.loadBalancer.ingress[0].hostname}' -n <release-namespace>
  • Run this command to get the loadbalancer-ip for application: kubectl get ingress/<release-name> -o jsonpath='{.status.loadBalancer.ingress[0].hostname}' -n default

Pictures

Terraform Log

Alternative Image

AWS Cluster

Alternative Image

AWS LoadBalancers

Alternative Image

Jenkins Build Over View

Alternative Image

Jenkins Build Stage View

Alternative Image

Jenkins Nodes

Alternative Image

Jenkins Ocean Blue (Plugin)

Alternative Image

Deployment Rollout

Alternative Image

Deployment Log

Alternative Image

Access Application Website Before CI/CD Changes

Alternative Image

Access Application Website After CI/CD Changes

Alternative Image

devops-tomcat-reg-app's People

Contributors

aomarabdelaziz avatar

Watchers

 avatar

Forkers

ashrafulislamcs

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.