Update README.md for uninstall modification
This commit is contained in:
parent
9e73d276a1
commit
af0be15b89
18
README.md
18
README.md
@ -193,24 +193,32 @@ See [here](./docs/troubleshooting.md) for the troubleshooting guide.
|
|||||||
2. Create the uninstallation job to clean up CRDs from the system and wait for success:
|
2. Create the uninstallation job to clean up CRDs from the system and wait for success:
|
||||||
```
|
```
|
||||||
kubectl create -f https://raw.githubusercontent.com/rancher/longhorn/master/uninstall/uninstall.yaml
|
kubectl create -f https://raw.githubusercontent.com/rancher/longhorn/master/uninstall/uninstall.yaml
|
||||||
kubectl -n longhorn-system get job/longhorn-uninstall -w
|
kubectl get job/longhorn-uninstall -w
|
||||||
```
|
```
|
||||||
|
|
||||||
Example output:
|
Example output:
|
||||||
```
|
```
|
||||||
$ kubectl create -f https://raw.githubusercontent.com/rancher/longhorn/master/uninstall/uninstall.yaml
|
$ kubectl create -f https://raw.githubusercontent.com/rancher/longhorn/master/uninstall/uninstall.yaml
|
||||||
|
serviceaccount/longhorn-uninstall-service-account created
|
||||||
|
clusterrole.rbac.authorization.k8s.io/longhorn-uninstall-role created
|
||||||
|
clusterrolebinding.rbac.authorization.k8s.io/longhorn-uninstall-bind created
|
||||||
job.batch/longhorn-uninstall created
|
job.batch/longhorn-uninstall created
|
||||||
$ kubectl -n longhorn-system get job/longhorn-uninstall -w
|
|
||||||
NAME DESIRED SUCCESSFUL AGE
|
$ kubectl get job/longhorn-uninstall -w
|
||||||
longhorn-uninstall 1 0 3s
|
NAME COMPLETIONS DURATION AGE
|
||||||
longhorn-uninstall 1 1 45s
|
longhorn-uninstall 0/1 3s 3s
|
||||||
|
longhorn-uninstall 1/1 20s 20s
|
||||||
^C
|
^C
|
||||||
```
|
```
|
||||||
|
|
||||||
3. Remove remaining components:
|
3. Remove remaining components:
|
||||||
```
|
```
|
||||||
kubectl delete -f https://raw.githubusercontent.com/rancher/longhorn/master/deploy/longhorn.yaml
|
kubectl delete -f https://raw.githubusercontent.com/rancher/longhorn/master/deploy/longhorn.yaml
|
||||||
|
kubectl delete -f https://raw.githubusercontent.com/rancher/longhorn/master/uninstall/uninstall.yaml
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Tip: If you try `kubectl delete -f https://raw.githubusercontent.com/rancher/longhorn/master/deploy/longhorn.yaml` first and get stuck there,
|
||||||
|
pressing `Ctrl C` then running `kubectl create -f https://raw.githubusercontent.com/rancher/longhorn/master/uninstall/uninstall.yaml` can also help you remove Longhorn. Finally, don't forget to cleanup remaining components.
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user