Run make d.build
after that make d.up
on the terminal when you are in the project directory.
-
Create an EDS via these URLs:
curl -X POST -H "Content-Type: application/json" -d '{"name":"e1"}' 0.0.0.0:8080/conf/eds
-
Create endpoints of EDS via these URLs:
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
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
-
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
-
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
-
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.
- Updates are not available for EDS and endpoints.
- Addresses of EDS endpoint may vary depending on your operating system. (192.168.65.2 for mac) See envoy.yaml for other container addresses.