From 269e3fd37b434cbc31b99884870100a44ca57796 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Aubin?= Date: Thu, 19 Jul 2018 02:24:41 +0200 Subject: [PATCH] inline code block is not displayed (#8940) * inline code block is not displayed Using `kubectl get storageclass` instead of ``` kubectl get storageclass ``` correctly shows the code markup. * Update change-default-storage-class.md * reformat markdown for nested list --- .../change-default-storage-class.md | 58 +++++++++++-------- 1 file changed, 35 insertions(+), 23 deletions(-) diff --git a/content/en/docs/tasks/administer-cluster/change-default-storage-class.md b/content/en/docs/tasks/administer-cluster/change-default-storage-class.md index 3e7abda851..75b69a7782 100644 --- a/content/en/docs/tasks/administer-cluster/change-default-storage-class.md +++ b/content/en/docs/tasks/administer-cluster/change-default-storage-class.md @@ -37,50 +37,62 @@ for details about addon manager and how to disable individual addons. ## Changing the default StorageClass -1. List the StorageClasses in your cluster: +1. List the StorageClasses in your cluster: - kubectl get storageclass + ```bash + kubectl get storageclass + ``` The output is similar to this: - NAME TYPE - standard (default) kubernetes.io/gce-pd - gold kubernetes.io/gce-pd + ```bash + NAME TYPE + standard (default) kubernetes.io/gce-pd + gold kubernetes.io/gce-pd + ``` - The default StorageClass is marked by `(default)`. + The default StorageClass is marked by `(default)`. 1. Mark the default StorageClass as non-default: - The default StorageClass has an annotation - `storageclass.kubernetes.io/is-default-class` set to `true`. Any other value - or absence of the annotation is interpreted as `false`. + The default StorageClass has an annotation + `storageclass.kubernetes.io/is-default-class` set to `true`. Any other value + or absence of the annotation is interpreted as `false`. - To mark a StorageClass as non-default, you need to change its value to `false`: + To mark a StorageClass as non-default, you need to change its value to `false`: - kubectl patch storageclass -p '{"metadata": {"annotations":{"storageclass.kubernetes.io/is-default-class":"false"}}}' + ```bash + kubectl patch storageclass -p '{"metadata": {"annotations":{"storageclass.kubernetes.io/is-default-class":"false"}}}' + ``` - where `` is the name of your chosen StorageClass. + where `` is the name of your chosen StorageClass. 1. Mark a StorageClass as default: - Similarly to the previous step, you need to add/set the annotation - `storageclass.kubernetes.io/is-default-class=true`. + Similarly to the previous step, you need to add/set the annotation + `storageclass.kubernetes.io/is-default-class=true`. - kubectl patch storageclass -p '{"metadata": {"annotations":{"storageclass.kubernetes.io/is-default-class":"true"}}}' + ```bash + kubectl patch storageclass -p '{"metadata": {"annotations":{"storageclass.kubernetes.io/is-default-class":"true"}}}' + ``` - Please note that at most one StorageClass can be marked as default. If two - or more of them are marked as default, Kubernetes ignores the annotation, - i.e. it behaves as if there is no default StorageClass. + Please note that at most one StorageClass can be marked as default. If two + or more of them are marked as default, Kubernetes ignores the annotation, + i.e. it behaves as if there is no default StorageClass. 1. Verify that your chosen StorageClass is default: - kubectl get storageclass + ```bash + kubectl get storageclass + ``` - The output is similar to this: + The output is similar to this: - NAME TYPE - standard kubernetes.io/gce-pd - gold (default) kubernetes.io/gce-pd + ```bash + NAME TYPE + standard kubernetes.io/gce-pd + gold (default) kubernetes.io/gce-pd + ``` {{% /capture %}}