You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2021/09/01 14:40:56 UTC

[GitHub] [apisix-dashboard] foolwc edited a comment on issue #2080: Feature request: support FQDN in upstream

foolwc edited a comment on issue #2080:
URL: https://github.com/apache/apisix-dashboard/issues/2080#issuecomment-910350910


   The upstream JSON schema shows that `Port` must be an Integer. And if we support FQDN, the `nodes` will be an `Object` but not an `Array`. So I'm confused how to deal with it. Should we give the port a default value? Please give me some lint. Thanks a lot @liuxiran  
   ```
   curl http://127.0.0.1:9080/apisix/admin/routes/1  -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X PUT -d '
   {
       "uri": "/ip",
       "upstream": {
           "type": "roundrobin",
           "nodes": {
               "httpbin.default.svc.cluster.local": 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.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org