qiujiayu commented on issue #1282: hard to extend the `nodes` of upstream URL: https://github.com/apache/incubator-apisix/issues/1282#issuecomment-599919745 > We recommend do this job on the route in Apache APISIX, not the upstream node, for example: > > ``` > curl -i http://127.0.0.1:9080/apisix/admin/routes/1 -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X PUT -d ' > { > "uri": "/index.html", > "vars": [ > ["arg_test", "true"] > ], > "upstream": { > "nodes": { > "192.168.1.100:80": 1 > } > } > }' > ``` > > and > > ``` > curl -i http://127.0.0.1:9080/apisix/admin/routes/1 -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X PUT -d ' > { > "uri": "/index.html", > "vars": [ > ["arg_test", "false"] > ], > "upstream": { > "nodes": { > "192.168.1.101:80": 1 > } > } > }' > ``` This example is good for static configuration. but for dynamic nodes from service discovery center.
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services