Skip to content

Latest commit

 

History

History
66 lines (53 loc) · 1.46 KB

README.md

File metadata and controls

66 lines (53 loc) · 1.46 KB

practice-envoyproxy

Envoyproxy practice with docker

Most read:

Create new cluster

$ curl --header "Content-Type: application/json"
--request PUT
--data @update_cluster.json
http://cds:3000/cluster/service1

Add hosts to the cluster $ cat > update_cluster.json << EOF { "name": "service1", "connect_timeout": "1s", "lb_policy": "round_robin", "type": "strict_dns", "hosts": [ { "socket_address": { "address": "host1", "port_value": 80 } }, { "socket_address": { "address": "host2", "port_value": 80 } }, { "socket_address": { "address": "host3", "port_value": 80 } } ] } EOF

$ curl --header "Content-Type: application/json"
--request PUT
--data @update_cluster.json
http://cds:3000/cluster/service1

Delete cluster $ curl --header "Content-Type: application/json"
--request DELETE
http://cds:3000/cluster/service1

Building the Control Plane for Service Discovery

For sample REST crafting, use the proto3 documentation to craft a proper json for CDS, EDS or RDS