我正在尝试将 Linkerd 用作路由器,连接到在相同/不同 IP 但在另一个端口上运行的另一个服务。HTTP 请求 ---> Linkerd 监听 4142 ------> 服务监听 4041
我在配置文件的 dtab 部分尝试了多种组合,但都没有奏效。
链接的配置文件
routers:
- protocol: http
dtab: /svc => /$/inet/127.1/9990;
servers:
- port: 8080
ip: 0.0.0.0
maxConcurrentRequests: 250
identifier:
kind: io.l5d.header
header: google
- protocol: http
label: test-http
dtab: |
/svc => /#/127.0.0.1/4041;
servers:
- port: 4142
ip: 0.0.0.0
我越来越:
Unable to route request!
service name: /svc/localhost:4142
dtab:
base dtab:
/svc => /127.0.0.1/4041
override dtab: