-
Notifications
You must be signed in to change notification settings - Fork 58
docs: add Chinese translation for circuit breaker document #261
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,152 @@ | ||||||||||||||||||||||||||
| --- | ||||||||||||||||||||||||||
| title: 熔断器 | ||||||||||||||||||||||||||
| sidebar_position: 10 | ||||||||||||||||||||||||||
| --- | ||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||
| 本文档提供了如何测试 Kmesh 熔断功能的分步指南。它涵盖了部署必要组件、配置流量规则以及观察熔断行为。 | ||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||
| ## 步骤 1. 部署 Kmesh | ||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||
| 请阅读[快速入门](https://kmesh.net/docs/setup/quick-start)完成 Kmesh 的部署。 | ||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||
| ## 步骤 2. 部署 fortio 和 httpbin | ||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||
| ``` sh | ||||||||||||||||||||||||||
| kubectl apply -f -<<EOF | ||||||||||||||||||||||||||
| apiVersion: v1 | ||||||||||||||||||||||||||
| kind: Service | ||||||||||||||||||||||||||
| metadata: | ||||||||||||||||||||||||||
| name: fortio | ||||||||||||||||||||||||||
| labels: | ||||||||||||||||||||||||||
| app: fortio | ||||||||||||||||||||||||||
| service: fortio | ||||||||||||||||||||||||||
| spec: | ||||||||||||||||||||||||||
| ports: | ||||||||||||||||||||||||||
| - port: 8080 | ||||||||||||||||||||||||||
| name: http | ||||||||||||||||||||||||||
| selector: | ||||||||||||||||||||||||||
| app: fortio | ||||||||||||||||||||||||||
| --- | ||||||||||||||||||||||||||
| apiVersion: apps/v1 | ||||||||||||||||||||||||||
| kind: Deployment | ||||||||||||||||||||||||||
| metadata: | ||||||||||||||||||||||||||
| name: fortio-deploy | ||||||||||||||||||||||||||
| spec: | ||||||||||||||||||||||||||
| replicas: 1 | ||||||||||||||||||||||||||
| selector: | ||||||||||||||||||||||||||
| matchLabels: | ||||||||||||||||||||||||||
| app: fortio | ||||||||||||||||||||||||||
| template: | ||||||||||||||||||||||||||
| metadata: | ||||||||||||||||||||||||||
| annotations: | ||||||||||||||||||||||||||
| # This annotation causes Envoy to serve cluster.outbound statistics via 15000/stats | ||||||||||||||||||||||||||
| # in addition to the stats normally served by Istio. The Circuit Breaking example task | ||||||||||||||||||||||||||
| # gives an example of inspecting Envoy stats via proxy config. | ||||||||||||||||||||||||||
|
Comment on lines
+42
to
+44
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This comment block has not been translated. According to the PR description, all content should be translated. Please translate this comment to Chinese for completeness and consistency.
Suggested change
Comment on lines
+42
to
+44
|
||||||||||||||||||||||||||
| # This annotation causes Envoy to serve cluster.outbound statistics via 15000/stats | |
| # in addition to the stats normally served by Istio. The Circuit Breaking example task | |
| # gives an example of inspecting Envoy stats via proxy config. | |
| # 该注解会让 Envoy 通过 15000/stats 暴露 cluster.outbound 相关统计数据 | |
| # 除了 Istio 默认提供的统计信息之外,“熔断”示例任务 | |
| # 还演示了如何通过 proxy config 查看 Envoy 的统计数据。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is an extra space before the language identifier
shfor this code block. For consistency with other code blocks in the document, it should be removed.