Fix inline YAML in resource quota (#9906)

Closes: #9905
This commit is contained in:
Qiming 2018-08-21 04:36:46 +08:00 committed by k8s-ci-robot
parent 1089ebbf41
commit 4050303130
1 changed files with 133 additions and 132 deletions

View File

@ -213,7 +213,7 @@ works as follows:
- Pods in the cluster have one of the three priority classes, "low", "medium", "high".
- One quota object is created for each priority.
1. Save the following YAML to a file `quota.yml`.
Save the following YAML to a file `quota.yml`.
```yaml
apiVersion: v1
@ -263,7 +263,7 @@ works as follows:
values: ["low"]
```
2. Apply it using `kubectl create`.
Apply the YAML using `kubectl create`.
```shell
kubectl create -f ./quota.yml
@ -273,7 +273,7 @@ works as follows:
resourcequota/pods-low created
```
3. Verify that `Used` quota is `0` using `kubectl describe quota`.
Verify that `Used` quota is `0` using `kubectl describe quota`.
```shell
kubectl describe quota
@ -304,7 +304,8 @@ works as follows:
memory 0 20Gi
pods 0 10
```
4. Create a pod with priority "high". Save the following YAML to a
Create a pod with priority "high". Save the following YAML to a
file `high-priority-pod.yml`.
```yaml
@ -334,7 +335,7 @@ works as follows:
kubectl create -f ./high-priority-pod.yml
```
5. Verify that "Used" stats for "high" priority quota, `pods-high`, has changed and that
Verify that "Used" stats for "high" priority quota, `pods-high`, has changed and that
the other two quotas are unchanged.
```shell