Using raw so that the text doesn't get interpreted (#1872)
This commit is contained in:
parent
dbecc1e0b5
commit
c4f528655f
|
|
@ -62,11 +62,12 @@ Deleting the Pods in a StatefulSet will not delete the associated volumes. This
|
||||||
|
|
||||||
To simply delete everything in a StatefulSet, including the associated pods, you can run a series of commands similar to the following:
|
To simply delete everything in a StatefulSet, including the associated pods, you can run a series of commands similar to the following:
|
||||||
|
|
||||||
```shell
|
```shell{% raw %}
|
||||||
grace=$(kubectl get pods <stateful-set-pod> --template '{{.spec.terminationGracePeriodSeconds}}')
|
grace=$(kubectl get pods <stateful-set-pod> --template '{{.spec.terminationGracePeriodSeconds}}')
|
||||||
kubectl delete statefulset -l app=myapp
|
kubectl delete statefulset -l app=myapp
|
||||||
sleep $grace
|
sleep $grace
|
||||||
kubectl delete pvc -l app=myapp
|
kubectl delete pvc -l app=myapp
|
||||||
|
{% endraw %}
|
||||||
```
|
```
|
||||||
|
|
||||||
In the example above, the Pods have the label `app=myapp`; substitute your own label as appropriate.
|
In the example above, the Pods have the label `app=myapp`; substitute your own label as appropriate.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue