# README
External Processing Demo
Simple Envoy ext_proc to test loadbalancing across multipe ext_proc services.
Build Local
make local.build
Run Local
-
The target is webhook.site, get a GUID from there first.
-
In separate terminals launch two instances of the ext-proc service
./bin/extprocdemo --port 10001
./bin/extprocdemo --port 10002
-
Use func-e to launch Envoy (https://func-e.io/)
func-e run -c config/envoy.yaml
-
Envoy is listening on port 8080, call that with the webhook.site GUID, e.g.
curl http://localhost:8080/03e9d944-0431-4027-b969-7022fc34e576
Build Container
Change to your own dockerhub repo prefix. Alternatively don't build it and just pull mine.
make docker.push
Run In Cluster
-
Install the services
kubectl create namespace envoy
helm upgrade -i -n envoy extproc ./helm/extproc
helm upgrade -i -n envoy envoy ./helm/envoy
-
Port forward
kubectl port-forward -n envoy --address 0.0.0.0 svc/envoy 8080:8080
-
Call the service
curl http://localhost:8080/03e9d944-0431-4027-b969-7022fc34e576