A simple GCP traffic extension in C++
- follow the guides:
- Dokerize and publish an image, use it instead
service-extensions-samples
- adjust and import
traffic-ext-test.yaml
:
gcloud service-extensions lb-traffic-extensions import [NAME] \
--source=traffic-ext-test.yaml \
--location=[REGION]
- execute
docker-compose build && docker-compose up
- Envoy will listen on 127.0.0.1:8080
- To receive request headers and body:
curl http://[your server]/test-body --data 'THIS IS THE TEST BODY' -X POST
- To receive only request headers:
curl http://[your server]/