How to specify remote cluster name in go-sdk DispatchHttpCall? #564
-
i cant use the go code below with envoy config which specified cluster
// Envoy Config
but i can't use kong upstream to call a remote cluster , it can't find it anywhere
kong calling plugin error is below picture is there any support of this remote cluster call in ngx_wasm_module implemetation? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
The module does support external dispatch calls ( |
Beta Was this translation helpful? Give feedback.
The module does support external dispatch calls (
proxywasm.DispatchHttpCall
) but not via "cluster name". Instead, directly pass an IP address or a hostname to the call, like so:proxywasm.DispatchHttpCall(127.0.0.1:10000)
orproxywasm.DispatchHttpCall(acl-service.com)
. Kong does not support specifying service clusters names for external HTTP calls (whether in Lua or in Wasm), and neither does this module by itself.