Merge pull request #28374 from froblesmartin/patch-1

Updating --cascade=false to --cascade=orphan
This commit is contained in:
Kubernetes Prow Robot 2021-06-14 11:01:29 -07:00 committed by GitHub
commit 3d35f770d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -845,12 +845,12 @@ kubectl get pods -w -l app=nginx
```
Use [`kubectl delete`](/docs/reference/generated/kubectl/kubectl-commands/#delete) to delete the
StatefulSet. Make sure to supply the `--cascade=false` parameter to the
StatefulSet. Make sure to supply the `--cascade=orphan` parameter to the
command. This parameter tells Kubernetes to only delete the StatefulSet, and to
not delete any of its Pods.
```shell
kubectl delete statefulset web --cascade=false
kubectl delete statefulset web --cascade=orphan
```
```
statefulset.apps "web" deleted
@ -966,7 +966,7 @@ kubectl get pods -w -l app=nginx
```
In another terminal, delete the StatefulSet again. This time, omit the
`--cascade=false` parameter.
`--cascade=orphan` parameter.
```shell
kubectl delete statefulset web