apache / apisix

The Cloud-Native API Gateway
https://apisix.apache.org/blog/
Apache License 2.0
14.52k stars 2.52k forks source link

Problems enabling a stream route #11695

Open zarconike opened 2 weeks ago

zarconike commented 2 weeks ago

Description

Hello, I installed APISIX version 3.10.0 with Helm. When I try to create a stream_routes (according to the documentation https://apisix.apache.org/docs/apisix/next/stream-proxy/), I get the following message: "error_msg": "stream mode is disabled, can not add stream routes." I've completed all the configuration correctly according to the documentation, but it's still not working.

I have already added the following to config.yaml:

stream_proxy: # TCP/UDP proxy tcp: # TCP proxy port list

And it still doesn’t work.

Environment

kayx23 commented 2 weeks ago

Did you set proxy_mode: http&stream?

e.g.

apisix:
  proxy_mode: http&stream
  stream_proxy:
    tcp:
      - 2000
# other configs......

Need to reload APISIX after the config.yaml changes