Skip to content

Commit 820f9ad

Browse files
committed
sync slis.md and deployment.md
sync slis.md and deployment.md
1 parent 6885ceb commit 820f9ad

File tree

2 files changed

+23
-17
lines changed

2 files changed

+23
-17
lines changed

content/zh-cn/docs/concepts/workloads/controllers/deployment.md

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -366,6 +366,14 @@ Follow the steps given below to update your Deployment:
366366
```shell
367367
kubectl set image deployment/nginx-deployment nginx=nginx:1.16.1
368368
```
369+
370+
<!--
371+
where `deployment/nginx-deployment` indicates the Deployment,
372+
`nginx` indicates the Container the update will take place and
373+
`nginx:1.16.1` indicates the new image and its tag.
374+
-->
375+
在这里,`deployment/nginx-deployment` 表明 Deployment 的名称,`nginx` 表明需要进行更新的容器,
376+
`nginx:1.16.1` 则表示镜像的新版本以及它的标签。
369377

370378
<!--
371379
The output is similar to:
@@ -2228,19 +2236,17 @@ Deployment 在创建时是默认不会处于暂停状态。
22282236
## {{% heading "whatsnext" %}}
22292237

22302238
<!--
2231-
* Learn about [Pods](/docs/concepts/workloads/pods).
2232-
* [Run a Stateless Application Using a Deployment](/docs/tasks/run-application/run-stateless-application-deployment/).
2233-
* `Deployment` is a top-level resource in the Kubernetes REST API.
2234-
Read the {{< api-reference page="workload-resources/deployment-v1" >}}
2235-
object definition to understand the API for deployments.
2239+
* Learn more about [Pods](/docs/concepts/workloads/pods).
2240+
* [Run a stateless application using a Deployment](/docs/tasks/run-application/run-stateless-application-deployment/).
2241+
* Read the {{< api-reference page="workload-resources/deployment-v1" >}} to understand the Deployment API.
22362242
* Read about [PodDisruptionBudget](/docs/concepts/workloads/pods/disruptions/) and how
22372243
you can use it to manage application availability during disruptions.
2244+
* Use kubectl to [create a Deployment](/docs/tutorials/kubernetes-basics/deploy-app/deploy-intro/).
22382245
-->
2239-
* 了解 [Pod](/zh-cn/docs/concepts/workloads/pods)
2246+
* 进一步了解 [Pod](/zh-cn/docs/concepts/workloads/pods)
22402247
* [使用 Deployment 运行一个无状态应用](/zh-cn/docs/tasks/run-application/run-stateless-application-deployment/)
2241-
* `Deployment` 是 Kubernetes REST API 中的一个顶层资源。
2242-
阅读 {{< api-reference page="workload-resources/deployment-v1" >}}
2243-
对象定义,以了解 Deployment 的 API 细节。
2248+
* 阅读 {{< api-reference page="workload-resources/deployment-v1" >}},
2249+
以了解 Deployment API 的细节。
22442250
* 阅读 [PodDisruptionBudget](/zh-cn/docs/concepts/workloads/pods/disruptions/)
22452251
了解如何使用它来在可能出现干扰的情况下管理应用的可用性。
2246-
2252+
* 使用 kubectl 来[创建一个 Deployment](/zh-cn/docs/tutorials/kubernetes-basics/deploy-app/deploy-intro/)

content/zh-cn/docs/reference/instrumentation/slis.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,19 @@ weight: 20
1515

1616
<!-- overview -->
1717

18-
{{< feature-state for_k8s_version="v1.26" state="alpha" >}}
18+
{{< feature-state for_k8s_version="v1.27" state="beta" >}}
1919

2020
<!--
21-
As an alpha feature, Kubernetes lets you configure Service Level Indicator (SLI) metrics
21+
By default, Kubernetes {{< skew currentVersion >}} publishes Service Level Indicator (SLI) metrics
2222
for each Kubernetes component binary. This metric endpoint is exposed on the serving
23-
HTTPS port of each component, at the path `/metrics/slis`. You must enable the
23+
HTTPS port of each component, at the path `/metrics/slis`. The
2424
`ComponentSLIs` [feature gate](/docs/reference/command-line-tools-reference/feature-gates/)
25-
for every component from which you want to scrape SLI metrics.
25+
defaults to enabled for each Kubernetes component as of v1.27.
2626
-->
27-
作为一个 Alpha 特性,Kubernetes 允许你为每个 Kubernetes 组件二进制文件配置服务水平指示器 (SLI) 指标
27+
默认情况下,Kubernetes {{< skew currentVersion >}} 会为每个 Kubernetes 组件的二进制文件发布服务等级指标(SLI)
2828
此指标端点被暴露在每个组件提供 HTTPS 服务的端口上,路径为 `/metrics/slis`
29-
你必须为想要抓取 SLI 指标的每个组件启用 `ComponentSLIs`
30-
[特性门控](/zh-cn/docs/reference/command-line-tools-reference/feature-gates/)
29+
从 v1.27 版本开始,对每个 Kubernetes 组件而言,
30+
`ComponentSLIs` [特性门控](/zh-cn/docs/reference/command-line-tools-reference/feature-gates/)都是默认启用的
3131

3232
<!-- body -->
3333

0 commit comments

Comments
 (0)