parent
1089ebbf41
commit
4050303130
|
|
@ -213,7 +213,7 @@ works as follows:
|
||||||
- Pods in the cluster have one of the three priority classes, "low", "medium", "high".
|
- Pods in the cluster have one of the three priority classes, "low", "medium", "high".
|
||||||
- One quota object is created for each priority.
|
- 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
|
```yaml
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
|
|
@ -263,7 +263,7 @@ works as follows:
|
||||||
values: ["low"]
|
values: ["low"]
|
||||||
```
|
```
|
||||||
|
|
||||||
2. Apply it using `kubectl create`.
|
Apply the YAML using `kubectl create`.
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
kubectl create -f ./quota.yml
|
kubectl create -f ./quota.yml
|
||||||
|
|
@ -273,7 +273,7 @@ works as follows:
|
||||||
resourcequota/pods-low created
|
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
|
```shell
|
||||||
kubectl describe quota
|
kubectl describe quota
|
||||||
|
|
@ -304,7 +304,8 @@ works as follows:
|
||||||
memory 0 20Gi
|
memory 0 20Gi
|
||||||
pods 0 10
|
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`.
|
file `high-priority-pod.yml`.
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
|
|
@ -334,7 +335,7 @@ works as follows:
|
||||||
kubectl create -f ./high-priority-pod.yml
|
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.
|
the other two quotas are unchanged.
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue