Giter Site home page Giter Site logo

cicd_dockerapp's Introduction

CICD Pipeline for Dockerized Applications

CI/CD Pipeline for Dockerized Applications Using AWS/Jenkins/Kubernetes. Please replace the Placeholders << >> with your Account Specific details.

Pipeline Architecture

CI_CD Pipeline

  1. GitHub Repo with Simple Application Code / Jenkinsfile / Docker File / Helm Chart etc.
  2. GitHub WebHooks triggers the Jenkins Job on Commit to the Repo.
  3. Unit Testcases are Run and Static application Security Testing (SAST) is carried out with and SonarQube.
  4. Docker Image is Built/Tagged (Using commit hash) and Pushed to ECR.
  5. Jenkins CI server Assumes Cross Account Role to connect to EKS account .
  6. Helm Lint is performed and Helm packaging is done. 
  7. Application deployed in EKS Cluster with Rolling Update Deployment Strategy 
  8. Email and Slack Notification is sent upon Successful/Failure of Jenkins Pipeline

Features

  • AWS EC2 Spot instances for Compute (Jenkins/Sonar)
  • Route53 used for DNS (mytwocents.click for Jenkins/Sonar and ramsawswork.click for Application in EKS)
  • Cross Account Access using IAM Role
  • Amazon Certificate Manager (ACM) is used to Secure the Application deployed in EKS
  • Zero-Downtime Deployment with EKS
  • Readiness/Liveness probes and Pod CPU/Memory Requests and Limits set.
  • Ingress enabled in EKS so multiple applications can be hosted and routed seamlessly in EKS
  • Pod Autoscaling is Setup with Horizontal Pod Autoscaler (HPA) with Scaling Criteria of CPU-Percentage > 50%

Screen Captures

Jenkins

image

SonarQube

SonarQube Results

ECR Repo

ECR Repo

EKS Cluster

EKS

Pod Autoscaling

HPA

Application Exposed Via Ingress

HomePage

Homepage

HealthCheck Page

Health Check Page

Email and Slack Notifications

image

image

image

cicd_dockerapp's People

Contributors

lakshmanandevops avatar

Stargazers

 avatar Schinckus Lionel avatar Yatharth Sharma avatar Ashish Patel avatar Agnaldo Neto Marinho 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.