GithubHelp home page GithubHelp logo

johnnyhuy / todo-app-kubernetes Goto Github PK

View Code? Open in Web Editor NEW
0.0 3.0 1.0 1.08 MB

馃殌 NodeJS todo app powered by Kubernetes using Kube Invaders, MongoDB, Vue 3, Skaffold, Minikube, Helm and more!

License: MIT License

CSS 0.12% HTML 0.68% JavaScript 6.66% Vue 16.81% TypeScript 16.23% Shell 51.63% Dockerfile 5.71% Ruby 0.16% Makefile 1.83% PowerShell 0.18%
load-testing chaos-engineering kubernetes helm todo-app todo nodejs vue hacktoberfest

todo-app-kubernetes's Introduction

MIT License LinkedIn


Logo

Todo App Kubernetes

A demonstration of a todo application in a container orchestration environment.

Getting Started
MonitoringLoad testingChaos testing
FindingsAcknowledgments

Background

Todo App

This project was made to solve the problem of introducing new team members into Kubernetes. Demonstrating tool to host a microservices app in Kubernetes along with testing and monitoring capabilities.

We're using Minikube as a baseline to deploy services into Kubernetes. However, this can be compatible with Managed Kubernetes Services give or take some modification to adapt to cloud providers.

Built With

Notable tools including, but not limited to:

Getting Started

Prerequisites

  • NodeJS v17+
  • Docker
  • Minikube

MacOS

Use Homebrew to install required tools.

brew bundle

# Install NodeJS
nvm use 16

Windows

Use Chocolatey to install required tools. Run the PowerShell script as admin.

.\Install-ChocoTools.ps1

# Install NodeJS
nvm use 16

Multi-platform

Alternatively, we can use VSCode dev containers to open a cluster environment. This only requires Docker.

Open this project in VSCode, ctrl + p and enter Remote-Containers: Rebuild and Reopen in Container.

Usage

Feel free to inspect make commands in the Makefile

# Start local cluster
make local-cluster

# Create a tunnel between Minikube and our local machine (localhost)
make tunnel

Monitoring

make deploy-monitoring

Load Testing

We can run load tests locally. This requires k6 and NodeJS with Yarn.

make load-test

Chaos Testing

TODO

Contributing

# Start local cluster
make local-cluster

# Build images, deploy, port-forward and watch for changes
skaffold dev

# OR

# Do everything `skaffold dev` except watching & port-forwarding
skaffold build -q | skaffold deploy --build-artifacts -

Findings

Little tid bits can me found in FINDINGS.md

Acknowledgments

Distributed under the MIT License. See LICENSE for more information.

TODO

todo-app-kubernetes's People

Contributors

johnnyhuy avatar

Watchers

James Cloos avatar  avatar  avatar

Forkers

wukongjiuwoa

todo-app-kubernetes's Issues

Choose a cloud provider to demo

At the moment this project only supports local clusters.

There's a good wealth of cloud providers to choose to deploy from nowadays.

  • Linode
  • Vultr
  • DigitalOcean
  • AWS
  • GCP
  • Azure

Or bake in a VPC Kubernetes cluster and deploy the demo from there 馃槺

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.