Git Product home page Git Product logo

jimpiquant / cloud-native-app Goto Github PK

View Code? Open in Web Editor NEW

This project forked from arvindmits/cloud-native-app

0.0 0.0 0.0 1.35 MB

The Cloud Native App repo is a collaboration between both the Azure Compute Upstream and FastTrack for Azure teams that contains a demo application that utilizes many CNCF projects to function. This repo provides a great way for people to learn about open source projects and be introduced to the many projects the CNCF (cncf.io) has to offer.

License: MIT License

Shell 9.01% JavaScript 0.34% C# 54.49% CSS 1.28% HTML 32.74% Dockerfile 2.14%

cloud-native-app's Introduction

CNCF Projects App

Overview

Have you ever wondered what an application architecture would look like if you committed to using mostly all graduated or incubating projects from the Cloud Native Computing Foundation? This repo, the CNCF Projects App, attempts to answer that question with an example expense application that is made up almost exclusively of CNCF projects.

CNCF Projects Application

The CNCF Projects App is a sample expense application simulating a user submitting an expense report. The application consists of the following components:

  • Kubernetes - Container Orchestration Cluster (CNCF)
  • Flux. CNCF. GitOps provider for infrastructure delivery (CNCF).
  • Rook - Storage Management (CNCF)
  • Harbor - Container Registry (CNCF)
  • Linkerd - Service Mesh (CNCF)
  • Prometheus - Monitoring (CNCF)
  • Jaeger - Observability/Tracing (CNCF)
  • Knative - Serverless (CNCF)
  • MySQL - Database
  • Nginx - Kubernetes Ingress Controller
  • Tekton CI/CD (CD Foundation)
  • Grafana - Dashboard
  • SendGrid - Email Service
  • GitHub - Code Repository
  • Web Front-End & Web API - .NET Core

Architecture

Below is the documented CNCF Projects App architecture for reference.

Alt text

Workflow

Application flow

1. The employee accesses a web app via NGINX Ingress to submit expenses.

2. The web app calls an API app to retrieve the employee's manager.

3. The web app pushes a message that's generated for the creation of the expense report to a Knative broker.

4. The expense report is saved in MySQL.

5. Knative triggers the Email Dispatcher function with the expense message as the payload.

6. Email Dispatcher creates a SendGrid message.

7. SendGrid sends an email to the retrieved manager for review.

DevOps flow

a. Developers write or update the code in Visual Studio Code.

b. Developers push the code to GitHub from their local workspace in Visual Studio Code.

c. Github Webhook triggers Tekton pipelines which clones the GitHub code.

d. Pipelines build and push and the container images to a Harbor registry.

e. Tekton deploys the web app, API app, and Email Dispatcher applications.

f. Prometheus captures application metrics.

g. Engineers monitor metrics on a Grafana Dashboard.

h. DevOps engineers monitor the Grafana Dashboard.

Infrastructure

i. AKS cluster based on the infrastructure presented in the AKS baseline.

ii. Rook Ceph used for cluster storage.

iii. Linkerd service mesh.

iv. Jaeger for overall application tracing on the Kubernetes cluster.

Install

Please follow the instructions here in sequence to deploy the CNCF Projects App in your environment.

Instructions for automated deployment through gitops are here.

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com.

When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.

cloud-native-app's People

Contributors

seenu433 avatar arsenvlad avatar phillipgibson avatar fmustaf avatar richardoc 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.