Skip to content

Commit

Permalink
add ovn-ic clean (#126)
Browse files Browse the repository at this point in the history
* add ovn-ic clean

* fix kubectl-ko to kubectl ko
  • Loading branch information
changluyi authored Oct 9, 2023
1 parent 31f5fcb commit e6a9fb0
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 2 deletions.
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
```

0 comments on commit e6a9fb0

Please sign in to comment.