Giter Club home page Giter Club logo

larryebaum_cc_demo's Introduction

Consul Connect Demo

An incredibly modified version of https://github.com/norhe/cc_demo

This repo demonstrates using Consul Connect. There are a number of moving parts.

First, a Consul cluster is deployed. Then, a set of client nodes are deployed. All client nodes have Consul running.

There are four pieces of the application. A mongo database to store records, a set of APIs called Product and Listing, and a web client that renders results. All pieces communicate with one another using the built in Consul Connect proxies.

Packer

The packer configuration used to build the machine images is in the packer directory. All images except the one built with Vault Enterprise are currently public. Use make if you want to build the AWS AMIs

Terraform

AWS

You will need AWS credentials, set your credentials appropriately https://www.terraform.io/docs/providers/aws/index.html

  • Change to the terraform/aws directory
  • Copy terraform.auto.tfvars.example to terraform.auto.tfvars and update appropriately
    • mode = "noconnect" deploys with Consul service discovery but without Connect
    • mode = "connect" deploys with Consul service discovery and Connect
  • Do the normal terraform init, terraform plan, terraform apply dance

Note: It takes a couple minutes for everything to spin up and be reachable after Terraform is done, until then the web_client will show some errors connecting to backend services. Just wait.

larryebaum_cc_demo's People

Contributors

thomashashi avatar kawsark avatar

Watchers

James Cloos 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.