Add ARM notes and delete old deletion guide

Signed-off-by: Sherlock113 <sherlockxu@yunify.com>
This commit is contained in:
Sherlock113 2021-05-17 22:21:51 +08:00
parent 62c2bf5a42
commit 3506356e81
4 changed files with 14 additions and 282 deletions

View File

@ -1,141 +0,0 @@
---
title: "Uninstall Pluggable Components from KubeSphere"
keywords: "Installer, uninstall, KubeSphere, Kubernetes"
description: "Learn how to uninstall each pluggable component in KubeSphere."
linkTitle: "Uninstall Pluggable Components from KubeSphere"
Weight: 16500
---
After you [enable pluggable components of KubeSphere](../../../pluggable-components/), you can also uninstall them using the following commands. Please back up any necessary data before you uninstall them.
## App Store
```bash
kubectl delete ns openpitrix-system
```
## Metrics Server
```bash
helm delete metrics-server -n kube-system
```
## Events
```bash
helm delete ks-events -n kubesphere-logging-system
```
## Auditing
```bash
helm delete kube-auditing -n kubesphere-logging-system
```
## Logging
```bash
kubectl delete ns kubesphere-logging-system
```
Optional:
```bash
# Uninstall es and curator
helm uninstall -n kubesphere-logging-system elasticsearch-logging
helm uninstall -n kubesphere-logging-system elasticsearch-logging-curator
# Uninstall fluent bit operator and fluent bit
kubectl delete -f https://github.com/kubesphere/fluentbit-operator/tree/v0.2.0/manifests/logging-stack
kubectl delete -f https://github.com/kubesphere/fluentbit-operator/tree/v0.2.0/manifests/setup
# Uninstall log sidecar injector
helm uninstall -n kubesphere-logging-system logsidecar-injector
```
## Alerting and Notification
```bash
kubectl delete ns kubesphere-alerting-system
```
To uninstall **alerting** only:
```bash
kubectl delete deployment -n kubesphere-alerting-system alerting-client alerting-executor alerting-manager alerting-watcher
kubectl delete svc -n kubesphere-alerting-system alerting-client-server alerting-manager-server
```
To uninstall **notification** only:
```bash
kubectl delete deployment -n kubesphere-alerting-system notification-deployment
kubectl delete svc -n kubesphere-alerting-system notification
```
{{< notice note >}}
Alerting and notification are often enabled at the same time, which run together in the namespace `kubesphere-alerting-system`.
{{</ notice >}}
## Service Mesh
```bash
helm -n istio-system delete istio-init
helm -n istio-system delete istio
helm -n istio-system delete jaeger-operator
kubectl delete ns istio-system
```
## DevOps
```bash
helm -n kubesphere-devops-system delete ks-jenkins
helm -n kubesphere-devops-system delete uc
```
```bash
# Delete DevOps projects
for devopsproject in `kubectl get devopsprojects -o jsonpath="{.items[*].metadata.name}"`
do
kubectl patch devopsprojects $devopsproject -p '{"metadata":{"finalizers":null}}' --type=merge
done
for pip in `kubectl get pipeline -A -o jsonpath="{.items[*].metadata.name}"`
do
kubectl patch pipeline $pip -n `kubectl get pipeline -A | grep $pip | awk '{print $1}'` -p '{"metadata":{"finalizers":null}}' --type=merge
done
for s2ibinaries in `kubectl get s2ibinaries -A -o jsonpath="{.items[*].metadata.name}"`
do
kubectl patch s2ibinaries $s2ibinaries -n `kubectl get s2ibinaries -A | grep $s2ibinaries | awk '{print $1}'` -p '{"metadata":{"finalizers":null}}' --type=merge
done
for s2ibuilders in `kubectl get s2ibuilders -A -o jsonpath="{.items[*].metadata.name}"`
do
kubectl patch s2ibuilders $s2ibuilders -n `kubectl get s2ibuilders -A | grep $s2ibuilders | awk '{print $1}'` -p '{"metadata":{"finalizers":null}}' --type=merge
done
for s2ibuildertemplates in `kubectl get s2ibuildertemplates -A -o jsonpath="{.items[*].metadata.name}"`
do
kubectl patch s2ibuildertemplates $s2ibuildertemplates -n `kubectl get s2ibuildertemplates -A | grep $s2ibuildertemplates | awk '{print $1}'` -p '{"metadata":{"finalizers":null}}' --type=merge
done
for s2iruns in `kubectl get s2iruns -A -o jsonpath="{.items[*].metadata.name}"`
do
kubectl patch s2iruns $s2iruns -n `kubectl get s2iruns -A | grep $s2iruns | awk '{print $1}'` -p '{"metadata":{"finalizers":null}}' --type=merge
done
kubectl delete devopsprojects --all 2>/dev/null
```
```bash
kubectl delete ns kubesphere-devops-system
```
{{< notice note >}}
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 `networkPolicy.enabled` to `false` in `ks-installer`.
{{</ notice >}}

View File

@ -251,6 +251,13 @@ At the same time, you must provide the login information used to connect to each
hosts:
- {name: master, address: 192.168.0.2, internalAddress: 192.168.0.2, privateKeyPath: "~/.ssh/id_rsa"}
```
- For installation on ARM devices:
```yaml
hosts:
- {name: master, address: 192.168.0.2, internalAddress: 192.168.0.2, user: ubuntu, password: Testing123, arch: arm64}
```
{{< notice tip >}}

View File

@ -1,141 +0,0 @@
---
title: "从 KubeSphere 上卸载可插拔组件"
keywords: "安装程序, 卸载, KubeSphere, Kubernetes"
description: "如何从 KubeSphere 上卸载可插拔组件"
linkTitle: "从 KubeSphere 上卸载可插拔组件"
Weight: 16500
---
在[启用 KubeSphere 的可插拔组件](../../../pluggable-components/)之后,您也可以使用以下命令来卸载这些组件。卸载之前,请将必要的数据进行备份。
## 应用商店
```bash
kubectl delete ns openpitrix-system
```
## Metrics Server
```bash
helm delete metrics-server -n kube-system
```
## 事件
```bash
helm delete ks-events -n kubesphere-logging-system
```
## 审计
```bash
helm delete kube-auditing -n kubesphere-logging-system
```
## 日志
```bash
kubectl delete ns kubesphere-logging-system
```
可选:
```bash
# Uninstall es and curator
helm uninstall -n kubesphere-logging-system elasticsearch-logging
helm uninstall -n kubesphere-logging-system elasticsearch-logging-curator
# Uninstall fluent bit operator and fluent bit
kubectl delete -f https://github.com/kubesphere/fluentbit-operator/tree/v0.2.0/manifests/logging-stack
kubectl delete -f https://github.com/kubesphere/fluentbit-operator/tree/v0.2.0/manifests/setup
# Uninstall log sidecar injector
helm uninstall -n kubesphere-logging-system logsidecar-injector
```
## 告警和通知
```bash
kubectl delete ns kubesphere-alerting-system
```
仅卸载**告警**
```bash
kubectl delete deployment -n kubesphere-alerting-system alerting-client alerting-executor alerting-manager alerting-watcher
kubectl delete svc -n kubesphere-alerting-system alerting-client-server alerting-manager-server
```
仅卸载**通知**
```bash
kubectl delete deployment -n kubesphere-alerting-system notification-deployment
kubectl delete svc -n kubesphere-alerting-system notification
```
{{< notice note >}}
告警和通知通常同时启用,两者在命名空间 `kubesphere-alerting-system` 中一起运行。
{{</ notice >}}
## 服务网格
```bash
helm -n istio-system delete istio-init
helm -n istio-system delete istio
helm -n istio-system delete jaeger-operator
kubectl delete ns istio-system
```
## DevOps
```bash
helm -n kubesphere-devops-system delete ks-jenkins
helm -n kubesphere-devops-system delete uc
```
```bash
# Delete DevOps projects
for devopsproject in `kubectl get devopsprojects -o jsonpath="{.items[*].metadata.name}"`
do
kubectl patch devopsprojects $devopsproject -p '{"metadata":{"finalizers":null}}' --type=merge
done
for pip in `kubectl get pipeline -A -o jsonpath="{.items[*].metadata.name}"`
do
kubectl patch pipeline $pip -n `kubectl get pipeline -A | grep $pip | awk '{print $1}'` -p '{"metadata":{"finalizers":null}}' --type=merge
done
for s2ibinaries in `kubectl get s2ibinaries -A -o jsonpath="{.items[*].metadata.name}"`
do
kubectl patch s2ibinaries $s2ibinaries -n `kubectl get s2ibinaries -A | grep $s2ibinaries | awk '{print $1}'` -p '{"metadata":{"finalizers":null}}' --type=merge
done
for s2ibuilders in `kubectl get s2ibuilders -A -o jsonpath="{.items[*].metadata.name}"`
do
kubectl patch s2ibuilders $s2ibuilders -n `kubectl get s2ibuilders -A | grep $s2ibuilders | awk '{print $1}'` -p '{"metadata":{"finalizers":null}}' --type=merge
done
for s2ibuildertemplates in `kubectl get s2ibuildertemplates -A -o jsonpath="{.items[*].metadata.name}"`
do
kubectl patch s2ibuildertemplates $s2ibuildertemplates -n `kubectl get s2ibuildertemplates -A | grep $s2ibuildertemplates | awk '{print $1}'` -p '{"metadata":{"finalizers":null}}' --type=merge
done
for s2iruns in `kubectl get s2iruns -A -o jsonpath="{.items[*].metadata.name}"`
do
kubectl patch s2iruns $s2iruns -n `kubectl get s2iruns -A | grep $s2iruns | awk '{print $1}'` -p '{"metadata":{"finalizers":null}}' --type=merge
done
kubectl delete devopsprojects --all 2>/dev/null
```
```bash
kubectl delete ns kubesphere-devops-system
```
{{< notice note >}}
对于组件 NetworkPolicy无需卸载组件就能禁用该组件因为该组件的控制器现在位于 `ks-controller-manager` 中。若想将组件 NetworkPolicy 从 KubeSphere 的控制台中移除,请在 `ks-installer` 中将 `networkPolicy.enabled` 更改为 `false`
{{</ notice >}}

View File

@ -246,6 +246,13 @@ spec:
hosts:
- {name: master, address: 192.168.0.2, internalAddress: 192.168.0.2, privateKeyPath: "~/.ssh/id_rsa"}
```
- 在 ARM 设备上安装的示例:
```yaml
hosts:
- {name: master, address: 192.168.0.2, internalAddress: 192.168.0.2, user: ubuntu, password: Testing123, arch: arm64}
```
{{< notice tip >}}