GithubHelp home page GithubHelp logo

devops_assignment's Introduction

DevOps Assignment

Introduction

This repository holds the The Lean Apps DevOps assignment. In this project you will find a folder that holds a microservice, supplied with a Dockerfile.

The following picture depicts the service and shows the corresponding dataflow:

As can be seen, the connecting web browsers will connect over an AWS Elastic Load Balancer (ELB) which will point to an NGINX ingress router (https://github.com/kubernetes/ingress-nginx) for Kubernetes.

Web Server

Multiple Web Server replicas, preferably in different machines, should be deployed (take a look at kubernetes PodAntiAffinity). The service will serve a simple message.

The assignment

You are required to setup and configure ELB, NGNIX, Kubernetes Cluster, and proper CI/CD!

You're free to choose which CI/CD platform to use, we suggest GitLab with GitLab runner. You're free to come up with your own flow for the CI/CD. There are a couple of requirements though:

  • Deploying an app to "production" should involve a manual action (big red button, slack message etc.)
  • Developers should be able to rollback a deployment.
  • The CI/CD pipeline should register the web-server to the ingress controller to be available externally with a URL (something.somedomain.com)
  • Multiple feature branches should be able to live alongside each other in the cluster (and be accessible via different URLs).

Pointers

  • You can use Let's Encrypt to create the necessary certificates (https://letsencrypt.org/).
  • You can use helm to install certain applications in Kubernetes.
  • You can use helm to install Gitlab: https://docs.gitlab.com/charts/.
    • Gitlab helm install requires certain DNS records to point to the ingress controller that the helm chart creates. You will have access to AWS Route 53 for this.
    • In order to use Docker in Docker, the Gitlab runners have to run in privileged mode. The default setting of the helm chart is to disable this feature, make sure you override that setting.
  • NodeJS apps manage their dependencies in a package.json file, npm install installs the dependencies in a folder called node_modules.
  • The tests can be executed by running npm test.

devops_assignment's People

Contributors

shubham3196 avatar

Watchers

James Cloos avatar Piyush Kamboj 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.