File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
docs/tutorials/stateful-application Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ kubectl create -f cassandra/cassandra-statefulset.yaml
8383kubectl exec -ti cassandra-0 -- nodetool status
8484
8585# cleanup
86- grace=$( kubectl get po cassandra-0 --template ' {{ .spec.terminationGracePeriodSeconds} }' ) \
86+ grace=$( kubectl get po cassandra-0 -o=jsonpath= ' { .spec.terminationGracePeriodSeconds}' ) \
8787 && kubectl delete statefulset,po -l app=cassandra \
8888 && echo " Sleeping $grace " \
8989 && sleep $grace \
@@ -421,7 +421,7 @@ Deleting and/or scaling a StatefulSet down will not delete the volumes associate
421421Use the following commands to delete the StatefulSet.
422422
423423``` console
424- $ grace=$( kubectl get po cassandra-0 --template ' {{ .spec.terminationGracePeriodSeconds} }' ) \
424+ $ grace=$( kubectl get po cassandra-0 -o=jsonpath= ' { .spec.terminationGracePeriodSeconds}' ) \
425425 && kubectl delete statefulset -l app=cassandra \
426426 && echo "Sleeping $grace" \
427427 && sleep $grace \
You can’t perform that action at this time.
0 commit comments