From c4f528655f1baaf8cd6b88adaf5ea36ec400547f Mon Sep 17 00:00:00 2001 From: Anirudh Ramanathan Date: Tue, 6 Dec 2016 13:05:21 -0800 Subject: [PATCH] Using raw so that the text doesn't get interpreted (#1872) --- docs/tasks/manage-stateful-set/deleting-a-statefulset.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/tasks/manage-stateful-set/deleting-a-statefulset.md b/docs/tasks/manage-stateful-set/deleting-a-statefulset.md index 500bb449de..0f840614d9 100644 --- a/docs/tasks/manage-stateful-set/deleting-a-statefulset.md +++ b/docs/tasks/manage-stateful-set/deleting-a-statefulset.md @@ -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: -```shell +```shell{% raw %} grace=$(kubectl get pods --template '{{.spec.terminationGracePeriodSeconds}}') kubectl delete statefulset -l app=myapp sleep $grace kubectl delete pvc -l app=myapp +{% endraw %} ``` In the example above, the Pods have the label `app=myapp`; substitute your own label as appropriate.