Giter Club home page Giter Club logo

envoy-front-proxy-sigsci's Introduction

To learn about this sandbox and for instructions on how to run it please head over to the envoy docs

envoy-front-proxy-sigsci

You must edit agent.conf and add your own SigSci accesskeyid and secretaccesskey values.

The contained Makefile contains some common tasks.

You can choose which versions of sigsci agent and envoy are used by editing Makefile to uncomment the desired versions.

Build containers with no cache option for the SigSci agent containers

make build

Run docker-compose to start the containers and scale SigSci agent cluster containers

make start

Stop the containers

make stop

Display all container stdout logs

make log

Run smoke test

make test

Clean up thoroughly

make clean

Debugging

If something goes wrong (e.g. you have edited one of the .yaml files poorly) and 'make test' hangs, you can try fetching directly from each of the listeners in the system as follows. In order from upstream to downstream:

$ docker exec envoy-front-proxy-sigsci_service2_1 curl http://localhost:8080/service/1
$ docker exec envoy-front-proxy-sigsci_service2_1 curl http://localhost:80/service/1
$ docker exec envoy-front-proxy-sigsci_front-envoy_1 curl http://localhost:80/service/1
$ curl http://localhost:8000/service/1

Here's what "make start" does, again from upstream to downstream:

Dockerfile-service is run twice; each instance runs start_service.sh,

  • service.py, which serves a message on its localhost:8080/service/1 and localhost:8080/service/2
  • envoy with service-envoy.yaml, which listens on port 80 and forwards requests to the above service on port 8080.

Dockerfile-frontenvoy runs envoy with front-envoy.yaml, which:

  • has an ingress listener on its port 80, and routes /service/1 and /service/2 to port 80 of the two instances of service.

docker-compose.yml listens on your workstation's port 8000 and forwards that to the ingress listener's port 80.

envoy-front-proxy-sigsci's People

Contributors

jzarris-sigsci avatar dkegel-sigsci avatar

Watchers

James Cloos avatar Victor Carvajal avatar

Forkers

dkegel-sigsci

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.