Git Product home page Git Product logo

k8s-message-demo's Introduction

Demo of the Trigger Hook.

Configuration of the demo application infrastructure in the Kubernetes cluster.

For a deeper understanding, read this article.

General scheme

  • Message dashboard - admin panel for accessing the Message API. The interface is based on the Vue framework.
  • Message service - responsible for managing messages. Creating, deleting, and deferred sending. It is written on the basis of the Symfony 5 framework (PHP).
  • Broker - RabbitMQ message broker for asynchronous communication.
  • Monitoring - monitoring the Trigger service. The displayed metrics are described here. Built on the basis of InfluxDb + Grafana.
  • Trigger service - the service implements the deferred task execution mechanism. Built on the basis of Trigger Hook.

Local deployment

First of all, the following applications must be installed:

  • docker
  • kubectl
  • minikube
  • git

For macOS, it is better to additionally install Virtualbox or Parallels as a driver. Docker as a driver on this system may be slow.

Launch

You can use a non-standard driver, such as Virtualbox or Parallels.

minikube start

or

minikube start --vm-driver=parallels

Clone the repositories of the project:

mkdir trigger-hook-demo && cd trigger-hook-demo

git clone https://github.com/pvelx/k8s-message-demo.git

cd k8s-message-demo && ./download

Deploying to a VM:

./deploy

It may take about 10 minutes to download container images and launch them before the app is fully operational.


To access the services from the local machine, you need to run:

./update_hosts

From the deployed host, services will be available via links:


Opening the Kubernetes Dashboard:

minikube dashboard

Rebuilding services

After changing the code in one of the services, you will need to rebuild it:

./build trigger-service
./build message-service
./build message-dashboard

Remove

To remove services from a VM, you can use:

./undeploy

For complete deletion:

minikube stop
minikube delete

License

This project is licensed under the MIT License - see the LICENSE file for details

k8s-message-demo's People

Contributors

pvelx avatar

Stargazers

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