parent
6885ceba20
commit
820f9adf6e
|
@ -367,6 +367,14 @@ Follow the steps given below to update your Deployment:
|
||||||
kubectl set image deployment/nginx-deployment nginx=nginx:1.16.1
|
kubectl set image deployment/nginx-deployment nginx=nginx:1.16.1
|
||||||
```
|
```
|
||||||
|
|
||||||
|
<!--
|
||||||
|
where `deployment/nginx-deployment` indicates the Deployment,
|
||||||
|
`nginx` indicates the Container the update will take place and
|
||||||
|
`nginx:1.16.1` indicates the new image and its tag.
|
||||||
|
-->
|
||||||
|
在这里,`deployment/nginx-deployment` 表明 Deployment 的名称,`nginx` 表明需要进行更新的容器,
|
||||||
|
而 `nginx:1.16.1` 则表示镜像的新版本以及它的标签。
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
The output is similar to:
|
The output is similar to:
|
||||||
-->
|
-->
|
||||||
|
@ -2228,19 +2236,17 @@ Deployment 在创建时是默认不会处于暂停状态。
|
||||||
## {{% heading "whatsnext" %}}
|
## {{% heading "whatsnext" %}}
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
* Learn about [Pods](/docs/concepts/workloads/pods).
|
* Learn more about [Pods](/docs/concepts/workloads/pods).
|
||||||
* [Run a Stateless Application Using a Deployment](/docs/tasks/run-application/run-stateless-application-deployment/).
|
* [Run a stateless application using a Deployment](/docs/tasks/run-application/run-stateless-application-deployment/).
|
||||||
* `Deployment` is a top-level resource in the Kubernetes REST API.
|
* Read the {{< api-reference page="workload-resources/deployment-v1" >}} to understand the Deployment API.
|
||||||
Read the {{< api-reference page="workload-resources/deployment-v1" >}}
|
|
||||||
object definition to understand the API for deployments.
|
|
||||||
* Read about [PodDisruptionBudget](/docs/concepts/workloads/pods/disruptions/) and how
|
* Read about [PodDisruptionBudget](/docs/concepts/workloads/pods/disruptions/) and how
|
||||||
you can use it to manage application availability during disruptions.
|
you can use it to manage application availability during disruptions.
|
||||||
|
* Use kubectl to [create a Deployment](/docs/tutorials/kubernetes-basics/deploy-app/deploy-intro/).
|
||||||
-->
|
-->
|
||||||
* 了解 [Pod](/zh-cn/docs/concepts/workloads/pods)。
|
* 进一步了解 [Pod](/zh-cn/docs/concepts/workloads/pods)。
|
||||||
* [使用 Deployment 运行一个无状态应用](/zh-cn/docs/tasks/run-application/run-stateless-application-deployment/)。
|
* [使用 Deployment 运行一个无状态应用](/zh-cn/docs/tasks/run-application/run-stateless-application-deployment/)。
|
||||||
* `Deployment` 是 Kubernetes REST API 中的一个顶层资源。
|
* 阅读 {{< api-reference page="workload-resources/deployment-v1" >}},
|
||||||
阅读 {{< api-reference page="workload-resources/deployment-v1" >}}
|
以了解 Deployment API 的细节。
|
||||||
对象定义,以了解 Deployment 的 API 细节。
|
|
||||||
* 阅读 [PodDisruptionBudget](/zh-cn/docs/concepts/workloads/pods/disruptions/)
|
* 阅读 [PodDisruptionBudget](/zh-cn/docs/concepts/workloads/pods/disruptions/)
|
||||||
了解如何使用它来在可能出现干扰的情况下管理应用的可用性。
|
了解如何使用它来在可能出现干扰的情况下管理应用的可用性。
|
||||||
|
* 使用 kubectl 来[创建一个 Deployment](/zh-cn/docs/tutorials/kubernetes-basics/deploy-app/deploy-intro/)。
|
||||||
|
|
|
@ -15,19 +15,19 @@ weight: 20
|
||||||
|
|
||||||
<!-- overview -->
|
<!-- overview -->
|
||||||
|
|
||||||
{{< feature-state for_k8s_version="v1.26" state="alpha" >}}
|
{{< feature-state for_k8s_version="v1.27" state="beta" >}}
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
As an alpha feature, Kubernetes lets you configure Service Level Indicator (SLI) metrics
|
By default, Kubernetes {{< skew currentVersion >}} publishes Service Level Indicator (SLI) metrics
|
||||||
for each Kubernetes component binary. This metric endpoint is exposed on the serving
|
for each Kubernetes component binary. This metric endpoint is exposed on the serving
|
||||||
HTTPS port of each component, at the path `/metrics/slis`. You must enable the
|
HTTPS port of each component, at the path `/metrics/slis`. The
|
||||||
`ComponentSLIs` [feature gate](/docs/reference/command-line-tools-reference/feature-gates/)
|
`ComponentSLIs` [feature gate](/docs/reference/command-line-tools-reference/feature-gates/)
|
||||||
for every component from which you want to scrape SLI metrics.
|
defaults to enabled for each Kubernetes component as of v1.27.
|
||||||
-->
|
-->
|
||||||
作为一个 Alpha 特性,Kubernetes 允许你为每个 Kubernetes 组件二进制文件配置服务水平指示器 (SLI) 指标。
|
默认情况下,Kubernetes {{< skew currentVersion >}} 会为每个 Kubernetes 组件的二进制文件发布服务等级指标(SLI)。
|
||||||
此指标端点被暴露在每个组件提供 HTTPS 服务的端口上,路径为 `/metrics/slis`。
|
此指标端点被暴露在每个组件提供 HTTPS 服务的端口上,路径为 `/metrics/slis`。
|
||||||
你必须为想要抓取 SLI 指标的每个组件启用 `ComponentSLIs`
|
从 v1.27 版本开始,对每个 Kubernetes 组件而言,
|
||||||
[特性门控](/zh-cn/docs/reference/command-line-tools-reference/feature-gates/)。
|
`ComponentSLIs` [特性门控](/zh-cn/docs/reference/command-line-tools-reference/feature-gates/)都是默认启用的。
|
||||||
|
|
||||||
<!-- body -->
|
<!-- body -->
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue