Giter VIP home page Giter VIP logo

envoy-dynamic-rest's Introduction

Prerequisites

Docker


Run

Run make d.build after that make d.up on the terminal when you are in the project directory.

Suggested Example

  1. Create an EDS via these URLs:

    curl -X POST -H "Content-Type: application/json" -d '{"name":"e1"}' 0.0.0.0:8080/conf/eds

  2. Create endpoints of EDS via these URLs:

    1. curl -X POST -H "Content-Type: application/json" -d '{"name": "e1", "address": "192.168.65.2", "port_value": 1200}' 0.0.0.0:8080/conf/endpoint
    2. curl -X POST -H "Content-Type: application/json" -d '{"name": "e1", "address": "192.168.65.2", "port_value": 1400}' 0.0.0.0:8080/conf/endpoint
  3. Create a CDS via this url:

    curl -X POST -H "Content-Type: application/json" -d '{"name": "c1", "eds_name": "e1"}' 0.0.0.0:8080/conf/cds

  4. Create a LDS via this url:

    curl -X POST -H "Content-Type: application/json" -d '{"name": "l1", "cds_name": "c1", "port_value": 20000}' 0.0.0.0:8080/conf/lds

  5. Finally, you should curl -X GET 0.0.0.0:20000 then you will see the routing.

Feel free to change all configurations. You can use an update and delete method on the same XDS endpoints as well.

Note:

  1. Updates are not available for EDS and endpoints.
  2. Addresses of EDS endpoint may vary depending on your operating system. (192.168.65.2 for mac) See envoy.yaml for other container addresses.

envoy-dynamic-rest's People

Contributors

0quz avatar

Stargazers

 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.