Merge pull request #1958 from YANGMAO-ZHANG/fifthtask

Fifth translation task
This commit is contained in:
KubeSphere CI Bot 2021-10-27 17:31:05 +08:00 committed by GitHub
commit 2be5d13710
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,50 +1,51 @@
---
title: "Uninstall Pluggable Components from KubeSphere v3.1.x"
title: "KubeSphere v3.1.x 卸载可插拔组件"
keywords: "Installer, uninstall, KubeSphere, Kubernetes"
description: "Learn how to uninstall each pluggable component in KubeSphere v3.1.x."
linkTitle: "Uninstall Pluggable Components from KubeSphere v3.1.x"
description: "学习如何在 KubeSphere v3.1.x 卸载所有可插拔组件。"
linkTitle: "KubeSphere v3.1.x 卸载可插拔组件"
Weight: 6940
---
After you [enable the pluggable components of KubeSphere](../../pluggable-components/), you can also uninstall them by performing the following steps. Please back up any necessary data before you uninstall these components.
[启用 KubeSphere 可插拔组件之后](../../pluggable-components/),还可以根据以下步骤卸载他们。请在卸载这些组件之前,备份所有重要数据。
{{< notice note >}}
The methods of uninstalling certain pluggable components on KubeSphere v3.1.x are different from the methods on KubeSphere v3.0.0. For more information about the uninstallation methods on KubeSphere v3.0.0, see [Uninstall Pluggable Components from KubeSphere](https://v3-0.docs.kubesphere.io/docs/faq/installation/uninstall-pluggable-components/).
KubeSphere v3.1.x 卸载某些可插拔组件的方法与 KubeSphere v3.0.0 不相同。有关 KubeSphere v3.0.0 卸载可插拔组件的详细方法,请参见[从 KubeSphere 上卸载可插拔组件](https://v3-0.docs.kubesphere.io/zh/docs/faq/installation/uninstall-pluggable-components/)。
{{</ notice >}}
## Prerequisites
## 准备工作
You have to change the value of the field `enabled` from `true` to `false` in `ks-installer` of the CRD `ClusterConfiguration` before you uninstall any pluggable components except Service Topology and Pod IP Pools.
在卸载除服务拓扑图和容器组 IP 池之外的可插拔组件之前,必须将 CRD 配置文件 `ClusterConfiguration` 中的 `ks-installer` 中的 `enabled` 字段的值从 `true` 改为 `false`
Use either of the following methods to change the value of the field `enabled`:
使用下列其中一方法更改 `enabled` 字段的值:
- Run the following command to edit `ks-installer`:
- 运行以下命令编辑 `ks-installer`
```bash
kubectl -n kubesphere-system edit clusterconfiguration ks-installer
```
```bash
kubectl -n kubesphere-system edit clusterconfiguration ks-installer
```
- Log in to the KubeSphere web console as `admin`, click **Platform** in the upper-left corner and select **Cluster Management**, and then go to **CRDs** to search for `ClusterConfiguration`. For more information, see [Enable Pluggable Components](../../../pluggable-components/).
- 使用 `admin` 身份登录 KubeSphere Web 控制台,左上角点击**平台管理**,选择**集群管理**,在**自定义资源 CRD** 中搜索 `ClusterConfiguration`。有关更多信息,请参见[启用可插拔组件](../../pluggable-components/)。
{{< notice note >}}
After the value is changed, you need to wait until the updating process is complete before you continue with any further operations.
更改值之后,需要等待配置更新完成,然后继续进行后续操作。
{{</ notice >}}
## Uninstall KubeSphere App Store
## 卸载 KubeSphere 应用商店
Change the value of `openpitrix.store.enabled` from `true` to `false` in `ks-installer` of the CRD `ClusterConfiguration`.
将 CRD `ClusterConfiguration` 配置文件中 `ks-installer` 参数的 `openpitrix.store.enabled` 字段的值从 `true` 改为 `false`
## Uninstall KubeSphere DevOps
## 卸载 KubeSphere DevOps
1. Change the value of `devops.enabled` from `true` to `false` in `ks-installer` of the CRD `ClusterConfiguration`.
1. 将 CRD `ClusterConfiguration` 配置文件中 `ks-installer` 参数的 `devops.enabled` 字段的值从 `true` 改为 `false`
2. Run the command mentioned in [Prerequisites](#prerequisites) and then delete the code under `status.devops` in `ks-installer` of the CRD `ClusterConfiguration`.
2. 运行[准备工作](#准备工作)中提到的命令,然后删除 CRD `ClusterConfiguration` 配置文件 `ks-installer` 参数中 `status.devops` 字段下的代码。
3. Run the following commands:
3. 运行下面的命令。
```bash
helm -n kubesphere-devops-system delete ks-jenkins
@ -90,11 +91,11 @@ Change the value of `openpitrix.store.enabled` from `true` to `false` in `ks-ins
kubectl delete ns kubesphere-devops-system
```
## Uninstall KubeSphere Logging
## 卸载 KubeSphere 日志系统
1. Change the value of `logging.enabled` from `true` to `false` in `ks-installer` of the CRD `ClusterConfiguration`.
1. 将 CRD `ClusterConfiguration` 配置文件中 `ks-installer` 参数的 `logging.enabled` 字段的值从 `true` 改为 `false`
2. To disable only log collection:
2. 仅禁用日志收集:
```bash
delete inputs.logging.kubesphere.io -n kubesphere-logging-system tail
@ -102,11 +103,11 @@ Change the value of `openpitrix.store.enabled` from `true` to `false` in `ks-ins
{{< notice note >}}
After running this command, you can still view the container recent logs provided by Kubernetes by default. However, the container history logs will be cleared and you cannot browse them any more.
运行此命令后,默认情况下仍可查看 Kubernetes 提供的容器最近日志。但是,容器历史记录日志将被清除,您无法再浏览它们。
{{</ notice >}}
3. To uninstall Logging system including Elasticsearch:
3. 卸载包括 Elasticsearch 的日志系统,请执行以下操作:
```bash
kubectl delete crd fluentbitconfigs.logging.kubesphere.io
@ -120,25 +121,25 @@ Change the value of `openpitrix.store.enabled` from `true` to `false` in `ks-ins
{{< notice note >}}
This operation may cause anomalies in Auditing, Events, and Service Mesh.
此操作可能导致审计、事件和服务网格的异常。
{{</ notice >}}
## Uninstall KubeSphere Events
## 卸载 KubeSphere 事件系统
1. Change the value of `events.enabled` from `true` to `false` in `ks-installer` of the CRD `ClusterConfiguration`.
1. 将 CRD `ClusterConfiguration` 配置文件中 `ks-installer` 参数的 `events.enabled` 字段的值从 `true` 改为 `false`
2. Run the following command:
2. 运行以下命令:
```bash
helm delete ks-events -n kubesphere-logging-system
```
## Uninstall KubeSphere Alerting
## 卸载 KubeSphere 告警系统
1. Change the value of `alerting.enabled` from `true` to `false` in `ks-installer` of the CRD `ClusterConfiguration`.
2. 将 CRD `ClusterConfiguration` 配置文件中 `ks-installer` 参数的 `alerting.enabled` 字段的值从 `true` 改为 `false`
2. Run the following command:
2. 运行以下命令:
```bash
kubectl -n kubesphere-monitoring-system delete thanosruler kubesphere
@ -146,16 +147,16 @@ Change the value of `openpitrix.store.enabled` from `true` to `false` in `ks-ins
{{< notice note >}}
Notification is installed in KubeSphere v3.1.x by default, so you do not need to uninstall it.
KubeSphere v3.1.x 通知系统为默认安装,您无需卸载。
{{</ notice >}}
## Uninstall KubeSphere Auditing
## 卸载 KubeSphere 审计
1. Change the value of `auditing.enabled` from `true` to `false` in `ks-installer` of the CRD `ClusterConfiguration`.
1. 将 CRD `ClusterConfiguration` 配置文件中 `ks-installer` 参数的 `auditing.enabled` 字段的值从 `true` 改为 `false`
2. Run the following commands:
2. 运行以下命令:
```bash
helm uninstall kube-auditing -n kubesphere-logging-system
@ -163,11 +164,11 @@ Change the value of `openpitrix.store.enabled` from `true` to `false` in `ks-ins
kubectl delete crd ar
```
## Uninstall KubeSphere Service Mesh
## 卸载 KubeSphere 服务网格
1. Change the value of `servicemesh.enabled` from `true` to `false` in `ks-installer` of the CRD `ClusterConfiguration`.
1. 将 CRD `ClusterConfiguration` 配置文件中 `ks-installer` 参数的 `servicemesh.enabled` 字段的值从 `true` 改为 `false`
2. Run the following commands:
2. 运行以下命令:
```bash
curl -L https://istio.io/downloadIstio | sh -
@ -180,15 +181,15 @@ Change the value of `openpitrix.store.enabled` from `true` to `false` in `ks-ins
helm -n istio-system delete jaeger-operator
```
## Uninstall Network Policies
## 卸载网络策略
For the component NetworkPolicy, disabling it does not require uninstalling the component as its controller is now inside `ks-controller-manager`. If you want to remove it from the KubeSphere console, change the value of `network.networkpolicy.enabled` from `true` to `false` in `ks-installer` of the CRD `ClusterConfiguration`.
对于 NetworkPolicy 组件,禁用它不需要卸载组件,因为其控制器位于 `ks-controller-manager` 中。如果想要将其从 KubeSphere 控制台中移除,将 CRD `ClusterConfiguration` 配置文件中参数 `ks-installer``network.networkpolicy.enabled` 的值从 `true` 改为 `false`
## Uninstall Metrics Server
## 卸载 Metrics Server
1. Change the value of `metrics_server.enabled` from `true` to `false` in `ks-installer` of the CRD `ClusterConfiguration`.
1. 将 CRD `ClusterConfiguration` 配置文件中参数 `ks-installer``metrics_server.enabled` 的值从 `true` 改为 `false`
2. Run the following commands:
2. 运行以下命令:
```bash
kubectl delete apiservice v1beta1.metrics.k8s.io
@ -196,34 +197,34 @@ For the component NetworkPolicy, disabling it does not require uninstalling the
kubectl -n kube-system delete deployment metrics-server
```
## Uninstall Service Topology
## 卸载服务拓扑图
1. Change the value of `network.topology.type` from `weave-scope` to `none` in `ks-installer` of the CRD `ClusterConfiguration`.
1. 将 CRD `ClusterConfiguration` 配置文件中参数 `ks-installer``network.topology.type` 的值从 `true` 改为 `false`
2. Run the following command:
2. 运行以下命令:
```bash
kubectl delete ns weave
```
## Uninstall Pod IP Pools
## 卸载容器 IP 池
Change the value of `network.ippool.type` from `calico` to `none` in `ks-installer` of the CRD `ClusterConfiguration`.
将 CRD `ClusterConfiguration` 配置文件中参数 `ks-installer``network.ippool.type` 的值从 `true` 改为 `false`
## Uninstall KubeEdge
## 卸载 KubeEdge
1. Change the value of `kubeedge.enabled` from `true` to `false` in `ks-installer` of the CRD `ClusterConfiguration`.
1. 将 CRD `ClusterConfiguration` 配置文件中参数 `ks-installer``kubeedege.enabled` 的值从 `true` 改为 `false`
2. Run the following commands:
2. 运行以下命令:
```bash
helm uninstall kubeedge -n kubeedge
kubectl delete ns kubeedge
```
{{< notice note >}}
After the uninstallation, you will not be able to add edge nodes to your cluster.
卸载后,您将无法为集群添加边缘节点。
{{</ notice >}}