add metrics guide

Signed-off-by: zhuxiujuan28 <562873187@qq.com>
This commit is contained in:
zhuxiujuan28 2024-12-19 15:07:21 +08:00
parent 182ab6fade
commit 4dbb76c25d
11 changed files with 146 additions and 78 deletions

View File

@ -3,7 +3,7 @@ This section explains how to manage workloads.
In KubeSphere, applications run in pods. To ensure business continuity in case of pod failures, it is common to create multiple replicas of a pod for an application. Workloads are responsible for managing replicas of pods and provide the following key functionalities:
* Automatically scale the number of pod replicas based on user-defined conditions.
// * Automatically scale the number of pod replicas based on user-defined conditions.
* Automatically update pods based on user-specified update strategies.
* Roll back pods to previous versions.

View File

@ -1,37 +0,0 @@
---
title: "Edit Autoscaling Settings"
linkTitle: "Edit Autoscaling Settings"
keywords: "Kubernetes, KubeSphere, Cluster Management, Application Workloads, Workloads, Edit Autoscaling"
description: "Learn how to edit autoscaling settings for workloads."
weight: 09
---
:ks_permission: **Application Workload Management**
:ks_navigation: **Application Workloads > Workloads**
include::../../../../_custom-en/clusterManagement/workloads/workloads-desc-editAutoScaling.adoc[]
== Prerequisites
include::../../../../_custom-en/clusterManagement/clusterManagement-prer-requiredPermission_new.adoc[]
== Steps
include::../../../../_custom-en/clusterManagement/clusterManagement-oper-openClusterPage.adoc[]
+
include::../../../../../_ks_components-en/oper-navigate.adoc[]
+
include::../../../../_custom-en/clusterManagement/workloads/workloads-oper-openDetailsPage.adoc[]
+
include::../../../../_custom-en/clusterManagement/workloads/workloads-oper-editAutoScalingSettings.adoc[]

View File

@ -12,7 +12,7 @@ This section describes how to manage workloads.
In KubeSphere, applications run in pods. To ensure business continuity when a single pod fails, it is usually necessary to create multiple pod replicas for an application. Workloads are resources used to manage pod replicas, responsible for managing multiple pod replicas of an application, and mainly provide the following functions:
* Automatically scale the number of pod replicas based on user-defined conditions.
// * Automatically scale the number of pod replicas based on user-defined conditions.
* Automatically update pods based on the update strategy specified by the user.

View File

@ -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.

View File

@ -0,0 +1,23 @@
---
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.
You can use Metrics Server for:
* CPU/Memory based horizontal autoscaling (link:https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/[Horizontal Autoscaling])
* Automatically adjusting/suggesting resources needed by containers (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.
|===

View File

@ -3,7 +3,7 @@
在{ks_product_both}平台,应用程序运行在容器组中。为确保单个容器组出现故障时业务不会中断,通常需要为一个应用程序创建多个容器组副本。工作负载是用于管理容器组副本的资源,负责对一个应用程序的多个容器组副本进行管理,主要提供以下功能:
* 根据用户设定的条件自动扩缩容器组副本数量。
// * 根据用户设定的条件自动扩缩容器组副本数量。
* 根据用户指定的更新策略自动更新容器组。

View File

@ -1,37 +0,0 @@
---
title: "编辑自动扩缩设置"
linkTitle: "编辑自动扩缩设置"
keywords: "Kubernetes, KubeSphere, 集群管理, 应用负载, 工作负载, 编辑自动扩缩"
description: "介绍如何编辑工作负载的自动扩缩设置。"
weight: 09
---
:ks_permission: **应用负载管理**
:ks_navigation: **应用负载 > 工作负载**
include::../../../../_custom/clusterManagement/workloads/workloads-desc-editAutoScaling.adoc[]
== 前提条件
include::../../../../_custom/clusterManagement/clusterManagement-prer-requiredPermission_new.adoc[]
== 操作步骤
include::../../../../_custom/clusterManagement/clusterManagement-oper-openClusterPage.adoc[]
+
include::../../../../../_ks_components/oper-navigate.adoc[]
+
include::../../../../_custom/clusterManagement/workloads/workloads-oper-openDetailsPage.adoc[]
+
include::../../../../_custom/clusterManagement/workloads/workloads-oper-editAutoScalingSettings.adoc[]

View File

@ -12,7 +12,7 @@ layout: "second"
在{ks_product_both}平台,应用程序运行在容器组中。为确保单个容器组出现故障时业务不会中断,通常需要为一个应用程序创建多个容器组副本。工作负载是用于管理容器组副本的资源,负责对一个应用程序的多个容器组副本进行管理,主要提供以下功能:
* 根据用户设定的条件自动扩缩容器组副本数量。
// * 根据用户设定的条件自动扩缩容器组副本数量。
* 根据用户指定的更新策略自动更新容器组。

View File

@ -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] > **取消**,可删除自动扩缩设置。

View File

@ -0,0 +1,24 @@
---
title: "Metrics Server"
keywords: "Kubernetes, {ks_product}, Metrics Server, 水平扩缩, 垂直扩缩"
description: "介绍如何使用 Metrics Server 扩展组件。"
weight: 24
layout: "second"
---
Metrics Server 是一个可扩展、高效的容器资源度量源,为 Kubernetes 内置的自动扩展管道提供服务。
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 扩展组件的详情页说明。
|===

View File

@ -0,0 +1,4 @@
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M4.04005 10.0889C5.08707 5.72441 9.45952 3.01198 13.8415 4.02364C18.2467 5.04066 20.9934 9.43625 19.9764 13.8415C18.9593 18.2467 14.5637 20.9934 10.1585 19.9763C7.95593 19.4678 6.16795 18.1147 5.05776 16.338L6.75386 15.2781C7.59281 16.6208 8.94396 17.6433 10.6084 18.0276C13.9374 18.7961 17.2591 16.7205 18.0276 13.3916C18.7962 10.0626 16.7206 6.74093 13.3916 5.97238C10.0973 5.21182 6.81006 7.23658 5.99722 10.5049L7.96905 10.9241L4.54841 13.1455L2.32703 9.72481L4.04005 10.0889Z" fill="#B6C2CD"/>
<path d="M11 7.24219H13V11.5858L15.7071 14.2929L14.2929 15.7071L11.5858 13C11.2107 12.6249 11 12.1162 11 11.5858V7.24219Z" fill="#324558"/>
</svg>

After

Width:  |  Height:  |  Size: 751 B