Git Product home page Git Product logo

envoy-experiments's Introduction

Envoy proxy examples and experiments

To run the samples in this project please install the following dependencies:

Simple TCP Load Balancing ./tcp-loadbalancing

This example shows how to loadbalance two Docker containers using Envoy

Simple Routing ./routing-simple

This example shows how to route to two different containers using HTTP path

Simple Routing Kubernetes ./routing-simple-k8s

This example shows how to route to two different containers using HTTP path running in Kubernetes

WASM HTTP Filters for Consul Service Mesh ./wasm-filters

This example shows how WASM HTTP filters can be used with Envoy proxy

Install Shipyard

curl https://shipyard.run/install | bash -s

Create the environment

shipyard run ./wasm-filters

envoy-experiments's People

Contributors

mikemorris avatar nicholasjackson avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

envoy-experiments's Issues

Empty reply from server when running curl

I have clone the repo and tried to run tcp-loadbalancing

shipyard run ./tcp-loadbalancing

The CLI runs properly, creating 4 containers

docker ps
CONTAINER ID        IMAGE                                 COMMAND                  CREATED             STATUS              PORTS                NAMES
22255205b9a0        shipyardrun/ingress:latest            "ingress --service-n…"   7 seconds ago       Up 5 seconds        0.0.0.0:80->80/tcp   frontend.ingress.shipyard.run
5c7388ad994f        envoyproxy/envoy-alpine:v1.13.1       "/docker-entrypoint.…"   9 seconds ago       Up 7 seconds        10000/tcp            envoy.container.shipyard.run
2644ed8272d8        nicholasjackson/fake-service:v0.8.0   "/app/fake-service"      9 seconds ago       Up 7 seconds                             api1.container.shipyard.run
aa365ad6c278        nicholasjackson/fake-service:v0.8.0   "/app/fake-service"      9 seconds ago       Up 7 seconds                             api2.container.shipyard.run

But curl localhost gives empty server response.

curl localhost
curl: (52) Empty reply from server

Support rust filters in the Envoy proxy of consul

I tried loading a WASM filter written in rust onto consul. Currently, it throws this error: "WASM missing malloc/free". A little digging lead me to this github issue : proxy-wasm/proxy-wasm-rust-sdk#3 . So I guess having consul use the "istio/proxyv2:1.5.0" image of envoy would help support filters in Rust (the ones using the proxy-wasm-rust-sdk) and maybe other languages. Is it possible to generate a consul image that uses this image of envoy?

Thank you

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.