Code Monkey home page Code Monkey logo

l5d-n5d-zk-docker's Introduction

Linkerd Service Mesh using Docker Compose

Prerequisite

  • Docker
  • Docker Compose

To start the setup

Clone this repo, cd to the directory and run the following command.

docker compose up

Dtab add

$ export NAMERD_URL=http://localhost:4180

curl -v -X PUT -d "/svc/red => /$/inet/red/80; /svc/green => /$/inet/green/80" -H "Content-Type: application/dtab" -H "Content-Type: application/dtab" $NAMERD_URL/api/1/dtabs/default
*   Trying ::1...
* TCP_NODELAY set
* Connected to localhost (::1) port 4180 (#0)
> PUT /api/1/dtabs/default HTTP/1.1
> Host: localhost:4180
> User-Agent: curl/7.54.0
> Accept: */*
> Content-Type: application/dtab
> Content-Type: application/dtab
> Content-Length: 58
>
* upload completely sent off: 58 out of 58 bytes
< HTTP/1.1 204 No Content
<
* Connection #0 to host localhost left intact

To check the request flow with host header

curl http://127.0.0.1:4140/ -H 'Host: red'
Hello linkerd! I'm RED :)

curl http://127.0.0.1:4140/ -H 'Host: green'
Hello linkerd! I'm Green.

Architecture

alt text

l5d-n5d-zk-docker's People

Contributors

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