Skip to content

Removing Incorrect Directories - [SURE-8597] #1602

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
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
Original file line number Diff line number Diff line change
Expand Up @@ -236,10 +236,8 @@ sudo k3s-uninstall.sh

The following directories are used when adding a node to a cluster, and should be removed. You can remove a directory using `rm -rf /directory_name`.

:::note

Depending on the role you assigned to the node, some of the directories will or won't be present on the node.

:::important
Depending on the role you assigned to the node, certain directories may or may not be present on the node.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should keep the empty lines before and after the triple colons. Removing them introduces our code to this Prettier issue.

:::

| Directories |
Expand All @@ -250,11 +248,9 @@ Depending on the role you assigned to the node, some of the directories will or
| `/etc/rancher` |
| `/opt/cni` |
| `/opt/rke` |
| `/run/secrets/kubernetes.io` |
| `/run/calico` |
| `/run/flannel` |
| `/var/lib/calico` |
| `/var/lib/etcd` |
| `/var/lib/cni` |
| `/var/lib/kubelet` |
| `/var/lib/rancher` |
Expand All @@ -265,18 +261,16 @@ Depending on the role you assigned to the node, some of the directories will or

**To clean the directories:**

```
```shell
rm -rf /etc/ceph \
/etc/cni \
/etc/kubernetes \
/etc/rancher \
/opt/cni \
/opt/rke \
/run/secrets/kubernetes.io \
/run/calico \
/run/flannel \
/var/lib/calico \
/var/lib/etcd \
/var/lib/cni \
/var/lib/kubelet \
/var/lib/rancher\
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ sudo k3s-uninstall.sh

以下目录在将节点添加到集群时使用,应将该目录删除。你可以使用 `rm -rf /directory_name` 来删除目录。

:::note
:::important

节点分配的角色决定了出现在节点上的目录。

Expand All @@ -246,11 +246,9 @@ sudo k3s-uninstall.sh
| `/etc/rancher` |
| `/opt/cni` |
| `/opt/rke` |
| `/run/secrets/kubernetes.io` |
| `/run/calico` |
| `/run/flannel` |
| `/var/lib/calico` |
| `/var/lib/etcd` |
| `/var/lib/cni` |
| `/var/lib/kubelet` |
| `/var/lib/rancher` |
Expand All @@ -261,18 +259,16 @@ sudo k3s-uninstall.sh

**清理目录**:

```
```shell
rm -rf /etc/ceph \
/etc/cni \
/etc/kubernetes \
/etc/rancher \
/opt/cni \
/opt/rke \
/run/secrets/kubernetes.io \
/run/calico \
/run/flannel \
/var/lib/calico \
/var/lib/etcd \
/var/lib/cni \
/var/lib/kubelet \
/var/lib/rancher\
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ sudo k3s-uninstall.sh

以下目录在将节点添加到集群时使用,应将该目录删除。你可以使用 `rm -rf /directory_name` 来删除目录。

:::note
:::important

节点分配的角色决定了出现在节点上的目录。

Expand All @@ -246,11 +246,9 @@ sudo k3s-uninstall.sh
| `/etc/rancher` |
| `/opt/cni` |
| `/opt/rke` |
| `/run/secrets/kubernetes.io` |
| `/run/calico` |
| `/run/flannel` |
| `/var/lib/calico` |
| `/var/lib/etcd` |
| `/var/lib/cni` |
| `/var/lib/kubelet` |
| `/var/lib/rancher` |
Expand All @@ -261,18 +259,16 @@ sudo k3s-uninstall.sh

**清理目录**:

```
```shell
rm -rf /etc/ceph \
/etc/cni \
/etc/kubernetes \
/etc/rancher \
/opt/cni \
/opt/rke \
/run/secrets/kubernetes.io \
/run/calico \
/run/flannel \
/var/lib/calico \
/var/lib/etcd \
/var/lib/cni \
/var/lib/kubelet \
/var/lib/rancher\
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ sudo k3s-uninstall.sh

以下目录在将节点添加到集群时使用,应将该目录删除。你可以使用 `rm -rf /directory_name` 来删除目录。

:::note
:::important

节点分配的角色决定了出现在节点上的目录。

Expand All @@ -246,11 +246,9 @@ sudo k3s-uninstall.sh
| `/etc/rancher` |
| `/opt/cni` |
| `/opt/rke` |
| `/run/secrets/kubernetes.io` |
| `/run/calico` |
| `/run/flannel` |
| `/var/lib/calico` |
| `/var/lib/etcd` |
| `/var/lib/cni` |
| `/var/lib/kubelet` |
| `/var/lib/rancher` |
Expand All @@ -261,18 +259,16 @@ sudo k3s-uninstall.sh

**清理目录**:

```
```shell
rm -rf /etc/ceph \
/etc/cni \
/etc/kubernetes \
/etc/rancher \
/opt/cni \
/opt/rke \
/run/secrets/kubernetes.io \
/run/calico \
/run/flannel \
/var/lib/calico \
/var/lib/etcd \
/var/lib/cni \
/var/lib/kubelet \
/var/lib/rancher\
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ sudo k3s-uninstall.sh

以下目录在将节点添加到集群时使用,应将该目录删除。你可以使用 `rm -rf /directory_name` 来删除目录。

:::note
:::important

节点分配的角色决定了出现在节点上的目录。

Expand All @@ -246,11 +246,9 @@ sudo k3s-uninstall.sh
| `/etc/rancher` |
| `/opt/cni` |
| `/opt/rke` |
| `/run/secrets/kubernetes.io` |
| `/run/calico` |
| `/run/flannel` |
| `/var/lib/calico` |
| `/var/lib/etcd` |
| `/var/lib/cni` |
| `/var/lib/kubelet` |
| `/var/lib/rancher` |
Expand All @@ -261,18 +259,16 @@ sudo k3s-uninstall.sh

**清理目录**:

```
```shell
rm -rf /etc/ceph \
/etc/cni \
/etc/kubernetes \
/etc/rancher \
/opt/cni \
/opt/rke \
/run/secrets/kubernetes.io \
/run/calico \
/run/flannel \
/var/lib/calico \
/var/lib/etcd \
/var/lib/cni \
/var/lib/kubelet \
/var/lib/rancher\
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -236,10 +236,8 @@ sudo k3s-uninstall.sh

The following directories are used when adding a node to a cluster, and should be removed. You can remove a directory using `rm -rf /directory_name`.

:::note

Depending on the role you assigned to the node, some of the directories will or won't be present on the node.

:::important
Depending on the role you assigned to the node, certain directories may or may not be present on the node.
:::

| Directories |
Expand All @@ -250,11 +248,9 @@ Depending on the role you assigned to the node, some of the directories will or
| `/etc/rancher` |
| `/opt/cni` |
| `/opt/rke` |
| `/run/secrets/kubernetes.io` |
| `/run/calico` |
| `/run/flannel` |
| `/var/lib/calico` |
| `/var/lib/etcd` |
| `/var/lib/cni` |
| `/var/lib/kubelet` |
| `/var/lib/rancher` |
Expand All @@ -265,18 +261,16 @@ Depending on the role you assigned to the node, some of the directories will or

**To clean the directories:**

```
```shell
rm -rf /etc/ceph \
/etc/cni \
/etc/kubernetes \
/etc/rancher \
/opt/cni \
/opt/rke \
/run/secrets/kubernetes.io \
/run/calico \
/run/flannel \
/var/lib/calico \
/var/lib/etcd \
/var/lib/cni \
/var/lib/kubelet \
/var/lib/rancher\
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -236,10 +236,8 @@ sudo k3s-uninstall.sh

The following directories are used when adding a node to a cluster, and should be removed. You can remove a directory using `rm -rf /directory_name`.

:::note

Depending on the role you assigned to the node, some of the directories will or won't be present on the node.

:::important
Depending on the role you assigned to the node, certain directories may or may not be present on the node.
:::

| Directories |
Expand All @@ -250,11 +248,9 @@ Depending on the role you assigned to the node, some of the directories will or
| `/etc/rancher` |
| `/opt/cni` |
| `/opt/rke` |
| `/run/secrets/kubernetes.io` |
| `/run/calico` |
| `/run/flannel` |
| `/var/lib/calico` |
| `/var/lib/etcd` |
| `/var/lib/cni` |
| `/var/lib/kubelet` |
| `/var/lib/rancher` |
Expand All @@ -265,18 +261,16 @@ Depending on the role you assigned to the node, some of the directories will or

**To clean the directories:**

```
```shell
rm -rf /etc/ceph \
/etc/cni \
/etc/kubernetes \
/etc/rancher \
/opt/cni \
/opt/rke \
/run/secrets/kubernetes.io \
/run/calico \
/run/flannel \
/var/lib/calico \
/var/lib/etcd \
/var/lib/cni \
/var/lib/kubelet \
/var/lib/rancher\
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -236,10 +236,8 @@ sudo k3s-uninstall.sh

The following directories are used when adding a node to a cluster, and should be removed. You can remove a directory using `rm -rf /directory_name`.

:::note

Depending on the role you assigned to the node, some of the directories will or won't be present on the node.

:::important
Depending on the role you assigned to the node, certain directories may or may not be present on the node.
:::

| Directories |
Expand All @@ -250,11 +248,9 @@ Depending on the role you assigned to the node, some of the directories will or
| `/etc/rancher` |
| `/opt/cni` |
| `/opt/rke` |
| `/run/secrets/kubernetes.io` |
| `/run/calico` |
| `/run/flannel` |
| `/var/lib/calico` |
| `/var/lib/etcd` |
| `/var/lib/cni` |
| `/var/lib/kubelet` |
| `/var/lib/rancher` |
Expand All @@ -265,18 +261,16 @@ Depending on the role you assigned to the node, some of the directories will or

**To clean the directories:**

```
```shell
rm -rf /etc/ceph \
/etc/cni \
/etc/kubernetes \
/etc/rancher \
/opt/cni \
/opt/rke \
/run/secrets/kubernetes.io \
/run/calico \
/run/flannel \
/var/lib/calico \
/var/lib/etcd \
/var/lib/cni \
/var/lib/kubelet \
/var/lib/rancher\
Expand Down
Loading