Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add ovn-ic clean #126

Merged
merged 2 commits into from
Oct 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 31 additions & 1 deletion docs/advance/with-ovn-ic.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,37 @@ kubectl -n kube-system delete cm ovn-ic-config
Delete `ts` logical switch:

```bash
kubectl-ko nbctl ls-del ts
kubectl ko nbctl ls-del ts
```

Repeat the same steps at the peer cluster.

## Clean OVN-IC

Delete the `ovn-ic-config` Configmap for all clusters:

```bash
kubectl -n kube-system delete cm ovn-ic-config
```

Delete all clusters' `ts` logical switches:

```bash
kubectl ko nbctl ls-del ts
```

Delete the cluster interconnect controller. If it is a high-availability OVN-IC database deployment, all need to be cleaned up.

If the controller is `docker` deploy execute command:

```bash
docker stop ovn-ic-db
docker rm ovn-ic-db
```

If the controller is `containerd` deploy the command:

```bash
ctr -n k8s.io task kill ovn-ic-db
ctr -n k8s.io containers rm ovn-ic-db
```
32 changes: 31 additions & 1 deletion docs/advance/with-ovn-ic.md
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ kubectl -n kube-system delete cm ovn-ic-config
删除 `ts` 逻辑交换机:

```bash
kubectl-ko nbctl ls-del ts
kubectl ko nbctl ls-del ts
```

在对端集群重复同样的步骤。
Expand All @@ -258,3 +258,33 @@ kubectl-ko nbctl ls-del ts
```bash
ovn-appctl -t ovn-controller inc-engine/recompute
```

## 清理集群互联

删除所有集群的 `ovn-ic-config` Configmap:

```bash
kubectl -n kube-system delete cm ovn-ic-config
```

删除所有集群的 `ts` 逻辑交换机:

```bash
kubectl ko nbctl ls-del ts
```

删除集群互联控制器,如果是高可用 OVN-IC 数据库部署,需要都清理掉。

如果控制器是 `docker` 部署执行命令:

```bash
docker stop ovn-ic-db
docker rm ovn-ic-db
```

如果控制器是 `containerd` 部署执行命令:

```bash
ctr -n k8s.io task kill ovn-ic-db
ctr -n k8s.io containers rm ovn-ic-db
```