siaron opened a new issue #4891:
URL: https://github.com/apache/apisix/issues/4891


   ### Issue description
   
   ```
   kubectl exec -it -n default apisix-66cc75967c-drjzl -- curl 
http://127.0.0.1:9180/apisix/admin/stream_routes/3 -H 'X-API-KEY: 
edd1c9f034335f136f87ad84b625c8f1' -X PUT -d '
   > {
   >     "remote_addr": "0.0.0.0/24",
   >     "plugins": {
   >         "mqtt-proxy": {
   >             "protocol_name": "MQTT",
   >             "protocol_level": 4,
   >             "upstream": {
   >                 "nodes": {
   >                     "10.1.1.107:1883": 1,
   >                     "10.1.1.106:1883": 1,
   >                     "10.1.1.105:1883": 1
   >                 },
   >                 "type": "roundrobin"
   >             }
   >         }
   >     }
   > }'
   Defaulted container "apisix" out of: apisix, wait-etcd (init)
   {"error_msg":"failed to check the configuration of stream plugin 
[mqtt-proxy]: property \"upstream\" validation failed: value should match only 
one schema, but matches none"}
   ```
   - 只能支持设置一个mqtt 代理吗?
   ```
   "upstream": {
         "host": "127.0.0.1",
         "port": 1980
     }
   ```
   
   ### Environment
   
   - apisix version (cmd: `apisix version`):
   - OS (cmd: `uname -a`):
   - OpenResty / Nginx version (cmd: `nginx -V` or `openresty -V`):
   - etcd version, if have (cmd: run `curl 
http://127.0.0.1:9090/v1/server_info` to get the info from server-info API):
   - apisix-dashboard version, if have:
   - luarocks version, if the issue is about installation (cmd: `luarocks 
--version`):
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to