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
This commit is contained in:
André Aubin
2018-07-19 02:24:41 +02:00
committed by k8s-ci-robot
parent 7f97e02779
commit 269e3fd37b
@@ -39,48 +39,60 @@ 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:
kubectl get storageclass ```bash
kubectl get storageclass
```
The output is similar to this: The output is similar to this:
NAME TYPE ```bash
standard (default) kubernetes.io/gce-pd NAME TYPE
gold kubernetes.io/gce-pd 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: 1. Mark the default StorageClass as non-default:
The default StorageClass has an annotation The default StorageClass has an annotation
`storageclass.kubernetes.io/is-default-class` set to `true`. Any other value `storageclass.kubernetes.io/is-default-class` set to `true`. Any other value
or absence of the annotation is interpreted as `false`. 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 <your-class-name> -p '{"metadata": {"annotations":{"storageclass.kubernetes.io/is-default-class":"false"}}}' ```bash
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.
1. Mark a StorageClass as default: 1. Mark a StorageClass as default:
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`.
kubectl patch storageclass <your-class-name> -p '{"metadata": {"annotations":{"storageclass.kubernetes.io/is-default-class":"true"}}}' ```bash
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,
i.e. it behaves as if there is no default StorageClass. i.e. it behaves as if there is no default StorageClass.
1. Verify that your chosen StorageClass is default: 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 ```bash
standard kubernetes.io/gce-pd NAME TYPE
gold (default) kubernetes.io/gce-pd standard kubernetes.io/gce-pd
gold (default) kubernetes.io/gce-pd
```
{{% /capture %}} {{% /capture %}}