foreveryang321 opened a new issue #5125:
URL: https://github.com/apache/apisix/issues/5125


   ### Issue description
   
   配置etcd tls后,apisix/conf/config.yaml中再配置 stream_proxy 会报错[error] 49#49: *162 
stream [lua] config_etcd.lua:563: no healthy etcd endpoint available, next 
retry after 4s, context: ngx.timer,去掉stream_proxy配置就正常,请问这个怎么解决?
   配置如下:
   ```yaml
   apisix:
     id: "yl-mac"
     node_listen: 9080
     enable_ipv6: false
   
     allow_admin:                  # 
http://nginx.org/en/docs/http/ngx_http_access_module.html#allow
       - 0.0.0.0/0
     admin_key:
       - name: "admin"
         key: edd1c9f034335f136f87ad84b625c8f1
         role: admin
       - name: "viewer"
         key: 4054f7cf07e344346cd3f287985e76a2
         role: viewer
   
     ssl:
       ssl_trusted_certificate: /usr/local/apisix/ssl/etcd-ca.pem
   
     stream_proxy:
       only: false
       tcp:
         - addr: 9200
           tls: true
   
   etcd:
     host:
       # - "http://etcd:2379";
       - "https://192.168.11.1:2379";
       - "https://192.168.11.2:2379";
       - "https://192.168.11.3:2379";
     prefix: "/apisix"
     timeout: 30
     tls:
       cert: /usr/local/apisix/ssl/etcd.pem
       key: /usr/local/apisix/ssl/etcd-key.pem
       verify: true
   ```
   
   ### Environment
   
   - apisix version (cmd: `apisix version`): 2.9
   - OpenResty / Nginx version: 1.19.3.2
   - etcd version: 3.5.0
   - apisix-dashboard version: 2.8
   


-- 
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