处理envoy配置的envoy工具(用于快速开发和调试)

265 阅读1分钟

envoyconf-tools

Envoy是一个代理,真的很厉害,我们是经常使用它,面对错误,努力调试,当envoy config的来源是一个外部端点。必须有一个专门处理envoy-config的工具,比如说:

将外部端点的配置转换为静态配置

  1. better visibility
  2. better reproducibility of scenarios
  3. better experimentation

  # How to use

  First get the config dump, from the envoy endpoint on admin port.

  Save it in a file.

  Call the Envoke binary as follows on the config file.

  # Example

  1. The config dump file is saved with name `envoy-config.json` .
  Remember: the file extension should be .json
  2. Call binary as `./envoke envoy-config`

  3. then load the envoy config as
  `cd envoy-config && envoy -c bootstrap.yaml`