Update README.md for uninstall modification
This commit is contained in:
parent
9e73d276a1
commit
af0be15b89
18
README.md
18
README.md
@ -193,25 +193,33 @@ 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:
|
||||
```
|
||||
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:
|
||||
```
|
||||
$ 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
|
||||
$ kubectl -n longhorn-system get job/longhorn-uninstall -w
|
||||
NAME DESIRED SUCCESSFUL AGE
|
||||
longhorn-uninstall 1 0 3s
|
||||
longhorn-uninstall 1 1 45s
|
||||
|
||||
$ kubectl get job/longhorn-uninstall -w
|
||||
NAME COMPLETIONS DURATION AGE
|
||||
longhorn-uninstall 0/1 3s 3s
|
||||
longhorn-uninstall 1/1 20s 20s
|
||||
^C
|
||||
```
|
||||
|
||||
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/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
|
||||
|
||||
Copyright (c) 2014-2019 [Rancher Labs, Inc.](http://rancher.com/)
|
||||
|
Loading…
Reference in New Issue
Block a user