Skip to content

zh-translation:docs/root/configuration/overview/bootstrap.rst - #388

Merged
addozhang merged 2 commits into
cloudnativeto:zhfrom
majinghe:config-overview-bootstrap
Dec 9, 2020
Merged

zh-translation:docs/root/configuration/overview/bootstrap.rst#388
addozhang merged 2 commits into
cloudnativeto:zhfrom
majinghe:config-overview-bootstrap

Conversation

@majinghe

@majinghe majinghe commented Dec 8, 2020

Copy link
Copy Markdown

issue: #276

provides static server configuration and configures Envoy to access :ref:`dynamic
configuration if needed <arch_overview_dynamic_config>`. This is supplied on the command-line via
the :option:`-c` flag, i.e.:
为了使用 xDS API,必须提供一份 bootstrap 配置文件。这能够提供静态服务器配置且可配置 Envoy 来访问 :ref:`动态配置(如有需要) <arch_overview_dynamic_config>` 。在命令行中可以通过选项 `-c` 来提供,例如:

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

要使用 xDS API,需要提供一个 bootstrap 配置文件。它提供了静态的服务器配置,并配置 Envoy 访问 :ref:动态配置(如有需要) <arch_overview_dynamic_config> 。//这样感觉更顺畅一点,技术性文章中是不是短句易读性更好一点?后面一句做了个断句

an xDS service such as :ref:`LDS
<config_listeners_lds>` or :ref:`CDS <config_cluster_manager_cds>` configured in
:ref:`dynamic_resources <envoy_v3_api_field_config.bootstrap.v3.Bootstrap.dynamic_resources>`.
:ref:`Bootstrap <envoy_v3_api_msg_config.bootstrap.v3.Bootstrap>` 消息是配置的根。在 :ref:`Bootstrap <envoy_v3_api_msg_config.bootstrap.v3.Bootstrap>` 消息中有一个重要的概念就是静态和动态资源之间的区别。比如 :ref:`监听器 <envoy_v3_api_msg_config.listener.v3.Listener>` 或 :ref:`集群 <envoy_v3_api_msg_config.cluster.v3.Cluster>` 之类的资源或在 :ref:`static_resources <envoy_v3_api_field_config.bootstrap.v3.Bootstrap.static_resources>` 中静态提供,或由配置在 :ref:`dynamic_resources <envoy_v3_api_field_config.bootstrap.v3.Bootstrap.dynamic_resources>` 中的诸如 :ref:`LDS <config_listeners_lds>` 或 :ref:`CDS <config_cluster_manager_cds>` 之类的 xDS 服务提供。

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

比如 :ref:监听器 <envoy_v3_api_msg_config.listener.v3.Listener> 或 :ref:集群 <envoy_v3_api_msg_config.cluster.v3.Cluster> 之类的资源可以在 :ref:static_resources <envoy_v3_api_field_config.bootstrap.v3.Bootstrap.static_resources> 中静态提供,

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个有个 either or,原意应该是 静态或者动态都能提供这种资源,但是提供的方式不同。

@majinghe

majinghe commented Dec 9, 2020

Copy link
Copy Markdown
Author

@scilla0531 参考修改了一下。

@addozhang
addozhang self-requested a review December 9, 2020 09:53

@addozhang addozhang left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good job.

/LGTM

@addozhang
addozhang merged commit da9441e into cloudnativeto:zh Dec 9, 2020
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

Successfully merging this pull request may close these issues.

3 participants