Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

envoy新版本好像已经弃用hosts了,改用endpoints了 #194

Open
xbw1220 opened this issue Apr 12, 2021 · 3 comments
Open

envoy新版本好像已经弃用hosts了,改用endpoints了 #194

xbw1220 opened this issue Apr 12, 2021 · 3 comments

Comments

@xbw1220
Copy link

xbw1220 commented Apr 12, 2021

No description provided.

@cnych
Copy link
Owner

cnych commented Apr 12, 2021

这个要去看新版本的文档哈,后续更新下

@xbw1220
Copy link
Author

xbw1220 commented Apr 12, 2021

这是我最近入门学习的一个TCP代理示例,供您参考,其他的我还在慢慢学习
[root@localhost envoy]# cat envoy.yaml
static_resources:
listeners:
name: listener_0
address:
socket_address: { address: 0.0.0.0, port_value: 80 }
filter_chains:
- filters:
- name: envoy.tcp_proxy
typed_config:
"@type": type.googleapis.com/envoy.config.filter.network.tcp_proxy.v2.TcpProxy
stat_prefix: tcp
cluster: test_cluster

clusters:

  • name: test_cluster
    connect_timeout: 10s
    type: STATIC
    lb_policy: ROUND_ROBIN
    load_assignment:
    cluster_name: test_cluster
    endpoints:
    • lb_endpoints:
      • endpoint:
        address:
        socket_address: { address: 127.0.0.1, port_value: 8081 }

@xbw1220
Copy link
Author

xbw1220 commented Apr 12, 2021

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants