From 5bab86b2b3133dc8465185711e6e187b367fb928 Mon Sep 17 00:00:00 2001 From: Caio Date: Tue, 30 Oct 2018 17:44:40 +0100 Subject: [PATCH] Code style not working on kubernetes.io (#10727) * Code style not working on kubernetes.io Code style based on tab works on github markdown, but it is not working on kubernetes.io. In addition to that, `` argument on line 50 is hidden on kubernetes.io, because it is being processed as a HTML tag. * Update change-pv-reclaim-policy.md Indentation fix Language of the code specified --- .../administer-cluster/change-pv-reclaim-policy.md | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/content/en/docs/tasks/administer-cluster/change-pv-reclaim-policy.md b/content/en/docs/tasks/administer-cluster/change-pv-reclaim-policy.md index d46e0ad9d6..97aef1769d 100644 --- a/content/en/docs/tasks/administer-cluster/change-pv-reclaim-policy.md +++ b/content/en/docs/tasks/administer-cluster/change-pv-reclaim-policy.md @@ -32,7 +32,9 @@ the corresponding `PersistentVolume` is not be deleted. Instead, it is moved to 1. List the PersistentVolumes in your cluster: - kubectl get pv + ```shell + kubectl get pv + ``` The output is similar to this: @@ -46,13 +48,17 @@ the corresponding `PersistentVolume` is not be deleted. Instead, it is moved to 1. Choose one of your PersistentVolumes and change its reclaim policy: - kubectl patch pv -p '{"spec":{"persistentVolumeReclaimPolicy":"Retain"}}' + ```shell + kubectl patch pv -p '{"spec":{"persistentVolumeReclaimPolicy":"Retain"}}' + ``` where `` is the name of your chosen PersistentVolume. 1. Verify that your chosen PersistentVolume has the right policy: - kubectl get pv + ```shell + kubectl get pv + ``` The output is similar to this: