moonming commented on issue #1282: hard to extend the `nodes` of upstream
URL: 
https://github.com/apache/incubator-apisix/issues/1282#issuecomment-599898714
 
 
    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 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:
[email protected]


With regards,
Apache Git Services

Reply via email to