guanw / ct-dns

service discovery with support for different storage options + http/grpc protocols (WIP)
0 stars 0 forks source link

Example to integrate with envoy #46

Open guanw opened 4 years ago

guanw commented 4 years ago

To start:

implement /v2/discovery:endpoints and /v1/registration/{serviceName} (done by #50 and #51 )

https://medium.com/@salmaan.rashid/envoy-control-plane-hello-world-2f49b2865f29

TODO 1

next: use go-control-plane to implement v2

https://www.lijiaocn.com/%E9%A1%B9%E7%9B%AE/2018/12/29/envoy-07-features-2-dynamic-discovery.html#%E5%AE%89%E8%A3%85go-control-plane

1) try to implement a minimum working server.Server with gateway at front first for current envoy.yaml to work. 2) update envoy.yaml to make eds query working with grpc instead of http.

Update: (This might not be needed as I only intend to provide EDS implementation as an example) Also see this

TODO 2

support specifying multiple services dynamically?

guanw commented 4 years ago

50 initial pr to integrate envoy api v2 manually

guanw commented 4 years ago

51 add unit test