-
Notifications
You must be signed in to change notification settings - Fork 302
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3225 from zhuxiujuan28/docs
add metrics-server guide
- Loading branch information
Showing
11 changed files
with
151 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 0 additions & 37 deletions
37
...gement/05-application-workloads/01-workloads/09-edit-auto-scaling-settings.adoc
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
45 changes: 45 additions & 0 deletions
45
...ocs/v4.1/11-use-extensions/24-metrics-server/01-edit-auto-scaling-settings.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
--- | ||
title: "Edit Autoscaling Settings" | ||
keywords: "Kubernetes, {ks_product-en}, Application Workloads, Workloads, Edit Autoscaling" | ||
description: "Learn how to edit autoscaling settings for workloads." | ||
weight: 01 | ||
--- | ||
|
||
:ks_permission: **Application Workload Management** | ||
:ks_navigation: **Application Workloads > Workloads** | ||
|
||
|
||
include::../../../_custom-en/clusterManagement/workloads/workloads-desc-editAutoScaling.adoc[] | ||
|
||
|
||
== Prerequisites | ||
|
||
|
||
:relfileprefix: ../../../ | ||
|
||
include::../../../_custom-en/clusterManagement/clusterManagement-prer-requiredPermission_clusterandproject.adoc[] | ||
|
||
:relfileprefix: ./ | ||
|
||
|
||
== Steps | ||
|
||
. Log in to the {ks_product-en} web console with a user who has the pass:a,q[{ks_permission}] permission, and access your cluster or project. | ||
|
||
+ | ||
|
||
include::../../../../_ks_components-en/oper-navigate.adoc[] | ||
|
||
+ | ||
|
||
. On the **Workloads** page, click **Deployments** or **StatefulSets** to open the list of workloads. | ||
|
||
+ | ||
|
||
include::../../../_custom-en/clusterManagement/workloads/workloads-oper-editAutoScalingSettings.adoc[] | ||
|
||
+ | ||
|
||
After the settings are complete, you can see image:/images/ks-qkcp/zh/icons/clock-2.svg[scaling,18,18] in the Status column on the Deployment or StatefulSet list page, indicating that the pod horizontal autoscaling policy has been set. | ||
|
||
. On the **Resource Status** tab of the workload details page, click image:/images/ks-qkcp/zh/icons/more.svg[more,18,18] > **Cancel** next to Autoscaling to delete the autoscaling settings. |
26 changes: 26 additions & 0 deletions
26
content/en/docs/v4.1/11-use-extensions/24-metrics-server/_index.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
--- | ||
title: "Metrics Server" | ||
keywords: "Kubernetes, {ks_product-en}, Metrics Server, Horizontal Autoscaling, Vertical Autoscaling" | ||
description: "Introduce how to use the Metrics Server extension." | ||
weight: 24 | ||
layout: "second" | ||
--- | ||
|
||
|
||
Metrics Server is a scalable, efficient source of container resource metrics for Kubernetes built-in autoscaling pipelines. | ||
|
||
Metrics Server collects resource metrics from Kubelets and exposes them in Kubernetes apiserver through link:https://github.com/kubernetes/metrics[Metrics API] | ||
for use by link:https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/[Horizontal Pod Autoscaler] and link:https://github.com/kubernetes/autoscaler/tree/master/vertical-pod-autoscaler/[Vertical Pod Autoscaler]. | ||
|
||
You can use Metrics Server for: | ||
|
||
- CPU/Memory based horizontal autoscaling (learn more about link:https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/[Horizontal Autoscaling]) | ||
- Automatically adjusting/suggesting resources needed by containers (learn more about link:https://github.com/kubernetes/autoscaler/tree/master/vertical-pod-autoscaler/[Vertical Autoscaling]) | ||
|
||
[.admon.note,cols="a"] | ||
|=== | ||
|Note | ||
|
||
| | ||
For more information about the extension, see the details page of the "Metrics Server" extension in the Extensions Center. | ||
|=== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 0 additions & 37 deletions
37
...gement/05-application-workloads/01-workloads/09-edit-auto-scaling-settings.adoc
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
46 changes: 46 additions & 0 deletions
46
...ocs/v4.1/11-use-extensions/24-metrics-server/01-edit-auto-scaling-settings.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
--- | ||
title: "编辑自动扩缩设置" | ||
keywords: "Kubernetes, {ks_product}, 应用负载, 工作负载, 编辑自动扩缩" | ||
description: "介绍如何编辑工作负载的自动扩缩设置。" | ||
weight: 01 | ||
--- | ||
|
||
:ks_permission: **应用负载管理** | ||
:ks_navigation: **应用负载 > 工作负载** | ||
|
||
|
||
include::../../../_custom/clusterManagement/workloads/workloads-desc-editAutoScaling.adoc[] | ||
|
||
|
||
== 前提条件 | ||
|
||
|
||
:relfileprefix: ../../../ | ||
|
||
include::../../../_custom/clusterManagement/clusterManagement-prer-requiredPermission_clusterandproject.adoc[] | ||
|
||
:relfileprefix: ./ | ||
|
||
|
||
|
||
== 操作步骤 | ||
|
||
. 以具有pass:a,q[{ks_permission}]权限的用户登录{ks_product_left} Web 控制台并进入您的集群或项目。 | ||
|
||
+ | ||
|
||
include::../../../../_ks_components/oper-navigate.adoc[] | ||
|
||
+ | ||
|
||
. 在**工作负载**页面,点击**部署**或**有状态副本集**,然后在列表中点击一个工作负载的名称打开其详情页面。 | ||
|
||
+ | ||
|
||
include::../../../_custom/clusterManagement/workloads/workloads-oper-editAutoScalingSettings.adoc[] | ||
|
||
+ | ||
|
||
设置完成后,在部署或有状态副本集列表页的状态栏中,会出现image:/images/ks-qkcp/zh/icons/clock-2.svg[scaling,18,18],表示已设置容器组水平自动扩缩策略。 | ||
|
||
. 在工作负载详情页的**资源状态**页签,点击自动扩缩右侧的image:/images/ks-qkcp/zh/icons/more.svg[more,18,18] > **取消**,可删除自动扩缩设置。 |
26 changes: 26 additions & 0 deletions
26
content/zh/docs/v4.1/11-use-extensions/24-metrics-server/_index.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
--- | ||
title: "Metrics Server" | ||
keywords: "Kubernetes, {ks_product}, Metrics Server, 水平扩缩, 垂直扩缩" | ||
description: "介绍如何使用 Metrics Server 扩展组件。" | ||
weight: 24 | ||
layout: "second" | ||
--- | ||
|
||
|
||
Metrics Server 是一个可扩展、高效的容器资源度量源,为 Kubernetes 内置的自动扩展管道提供服务。 | ||
|
||
Metrics Server 从 Kubelet 收集资源指标,并通过 link:https://github.com/kubernetes/metrics[Metrics API] 在 Kubernetes apiserver 中公开它们,供 link:https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/[Horizontal Pod Autoscaler] 和 link:https://github.com/kubernetes/autoscaler/tree/master/vertical-pod-autoscaler/[Vertical Pod Autoscaler] 使用。 | ||
|
||
Metrics Server 可实现如下功能: | ||
|
||
- 基于 CPU/内存的水平自动缩放(了解更多关于 link:https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/[Horizontal Autoscaling]) | ||
- 自动调整/建议容器所需的资源(了解更多关于 link:https://github.com/kubernetes/autoscaler/tree/master/vertical-pod-autoscaler/[Vertical Autoscaling]) | ||
|
||
|
||
[.admon.note,cols="a"] | ||
|=== | ||
|说明 | ||
|
||
| | ||
有关组件的更多信息,请参阅扩展中心 Metrics Server 扩展组件的详情页说明。 | ||
|=== |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.