Update basic-stateful-set.md

Cascading Delete: fixup mixup in delete commands
This commit is contained in:
Julien
2020-08-28 17:09:38 +02:00
committed by GitHub
parent 1845764281
commit ee8a9b29c2
@@ -1039,7 +1039,7 @@ Even though you completely deleted the StatefulSet, and all of its Pods, the
Pods are recreated with their PersistentVolumes mounted, and `web-0` and Pods are recreated with their PersistentVolumes mounted, and `web-0` and
`web-1` continue to serve their hostnames. `web-1` continue to serve their hostnames.
Finally, delete the `web` StatefulSet... Finally, delete the `nginx` Service...
```shell ```shell
kubectl delete service nginx kubectl delete service nginx
@@ -1047,7 +1047,7 @@ kubectl delete service nginx
``` ```
service "nginx" deleted service "nginx" deleted
``` ```
...and the `nginx` Service: ...and the `web` StatefulSet:
```shell ```shell
kubectl delete statefulset web kubectl delete statefulset web
``` ```