scorpion / lms

🧑‍🏫 Scorpion LMS + Docker Hub automation and infrastructure provisioner. NGDLE precursor.
https://learn.scorpion.io
Apache License 2.0
2 stars 0 forks source link

Consul Integration #12

Open brettwilcox opened 3 years ago

brettwilcox commented 3 years ago

Summary

Consul is a full-featured service mesh solution that solves the networking and security challenges of operating microservices and cloud infrastructure. Consul offers a software-driven approach to routing and segmentation. It also brings additional benefits such as failure handling, retries, and network observability. Each of these features can be used individually as needed or they can be used together to build a full service mesh.

Why I opened this request

I would like to investigate Consul to connect Azure with on-prem infrastructure and start gaining visibility into the Cherwell stack.

Learning Journey

  1. https://learn.hashicorp.com/tutorials/consul/get-started?in=consul/getting-started
  2. https://learn.hashicorp.com/tutorials/consul/service-mesh?in=consul/gs-consul-service-mesh

Architecture

We are going to use the Bitnami image as it is 100% instrumented and fully documented. I have forked the repository as well for preservation purposes.

101491475-696b1580-3929-11eb-8213-8f48d838a93e

Proxy Services Mesh

101491552-80116c80-3929-11eb-9c4f-8430e8aaede4

Environment Variables

https://github.com/hashicorp/envconsul

Load Balancing

This article in particular may be the method I use, still not sure - https://medium.com/@andreidascalu/development-environment-with-traefik-fbd6efb64930

101490266-bbab3700-3927-11eb-974e-e486b10983e9 102685771-8a90f900-41a8-11eb-8125-8c1d9e02279c