Giter VIP home page Giter VIP logo

devops-capstone's Introduction

DevOps Engineer Capstone Project

Capstone project of the Cloud DevOps Engineer Nanodegree at Udacity, showcasing the use of several CI/CD tools and cloud services covered in the program Udacity - AWS Cloud DevOps Engineer.

Introduction

This project deploy a simple Node express application using CircleCI and a Kubernetes (K8S) cluster deployed in AWS EKS:

  • Building CircleCI pipelines to implement Continuous Integration and Continuous Deployment
  • Using AWS, Ansible and CloudFormation to deploy clusters
  • Building Kubernetes clusters
  • Building Docker containers in pipelines

Project

The project build a Docker image and then run it in a Kubernetes cluster.

The project includes the following main tasks:

  • Test the project's code using linting: make lint
    • Lints shell scripts, Dockerfile and Javascript code
  • Create a Dockerfile to containerize the Nodejs application: Dockerfile
  • Deploy to a public Docker Registry:
  • Deploy a Kubernetes cluster
  • config cluster using Ansible

The CircleCI pipeline(config.yml) will execute:

  • Code lint
  • Build and publish the Docker container image
  • Deploy K8s and management stacks
  • Deploy newest Docker Image

Linting

Linting is used to check if the Application and Dockerfile is syntactically correct, making sure that the code quality is high. This project uses ESLint and Hadolint.

  • output when lint passes: Linting step pass
  • output when lint fails: Linting step fail

List of deployed Stacks

CloudFormation

List of deployed Instances

Show Instances

CircleCi Pipelines

Run a CircleCi Pipeline to test and deploy changes to the Cluster using Ansible.

Pipeline workflow: CircleCi Pipeline

Access the Application

Check the deployments after the EKS Cluster has been successfully configured using Ansible within the CI/CD Pipeline using kubectl:

Access the app using Public LB DNS: http://ab3f63419d5f94c47bc90793e46b51e5-1326747092.us-east-1.elb.amazonaws.com/

The application

Tools and Services used

Notes

Setup

The project uses:

  • circleci/docker orb to build and publish images.

    • DOCKER_LOGIN
    • DOCKER_PASSWORD
  • circleci/aws-cli to deploy AWS stacks.

    • AWS_ACCESS_KEY_ID
    • AWS_SECRET_ACCESS_KEY
    • AWS_DEFAULT_REGION
  • a kvdb bucket

Main Files

devops-capstone's People

Contributors

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