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
pull/9576/head
André Aubin 2018-07-19 02:24:41 +02:00 committed by k8s-ci-robot
parent 7f97e02779
commit 269e3fd37b
1 changed files with 35 additions and 23 deletions

View File

@ -39,13 +39,17 @@ for details about addon manager and how to disable individual addons.
1. List the StorageClasses in your cluster: 1. List the StorageClasses in your cluster:
```bash
kubectl get storageclass kubectl get storageclass
```
The output is similar to this: The output is similar to this:
```bash
NAME TYPE NAME TYPE
standard (default) kubernetes.io/gce-pd standard (default) kubernetes.io/gce-pd
gold kubernetes.io/gce-pd gold kubernetes.io/gce-pd
```
The default StorageClass is marked by `(default)`. The default StorageClass is marked by `(default)`.
@ -57,7 +61,9 @@ for details about addon manager and how to disable individual addons.
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`:
```bash
kubectl patch storageclass <your-class-name> -p '{"metadata": {"annotations":{"storageclass.kubernetes.io/is-default-class":"false"}}}' kubectl patch storageclass <your-class-name> -p '{"metadata": {"annotations":{"storageclass.kubernetes.io/is-default-class":"false"}}}'
```
where `<your-class-name>` is the name of your chosen StorageClass. where `<your-class-name>` is the name of your chosen StorageClass.
@ -66,7 +72,9 @@ for details about addon manager and how to disable individual addons.
Similarly to the previous step, you need to add/set the annotation Similarly to the previous step, you need to add/set the annotation
`storageclass.kubernetes.io/is-default-class=true`. `storageclass.kubernetes.io/is-default-class=true`.
```bash
kubectl patch storageclass <your-class-name> -p '{"metadata": {"annotations":{"storageclass.kubernetes.io/is-default-class":"true"}}}' kubectl patch storageclass <your-class-name> -p '{"metadata": {"annotations":{"storageclass.kubernetes.io/is-default-class":"true"}}}'
```
Please note that at most one StorageClass can be marked as default. If two 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, or more of them are marked as default, Kubernetes ignores the annotation,
@ -74,13 +82,17 @@ for details about addon manager and how to disable individual addons.
1. Verify that your chosen StorageClass is default: 1. Verify that your chosen StorageClass is default:
```bash
kubectl get storageclass kubectl get storageclass
```
The output is similar to this: The output is similar to this:
```bash
NAME TYPE NAME TYPE
standard kubernetes.io/gce-pd standard kubernetes.io/gce-pd
gold (default) kubernetes.io/gce-pd gold (default) kubernetes.io/gce-pd
```
{{% /capture %}} {{% /capture %}}