replace tabs with spaces (#10060)
This commit is contained in:
@@ -231,8 +231,8 @@ items:
|
|||||||
scopeSelector:
|
scopeSelector:
|
||||||
matchExpressions:
|
matchExpressions:
|
||||||
- operator : In
|
- operator : In
|
||||||
scopeName: PriorityClass
|
scopeName: PriorityClass
|
||||||
values: ["high"]
|
values: ["high"]
|
||||||
- apiVersion: v1
|
- apiVersion: v1
|
||||||
kind: ResourceQuota
|
kind: ResourceQuota
|
||||||
metadata:
|
metadata:
|
||||||
@@ -245,8 +245,8 @@ items:
|
|||||||
scopeSelector:
|
scopeSelector:
|
||||||
matchExpressions:
|
matchExpressions:
|
||||||
- operator : In
|
- operator : In
|
||||||
scopeName: PriorityClass
|
scopeName: PriorityClass
|
||||||
values: ["medium"]
|
values: ["medium"]
|
||||||
- apiVersion: v1
|
- apiVersion: v1
|
||||||
kind: ResourceQuota
|
kind: ResourceQuota
|
||||||
metadata:
|
metadata:
|
||||||
@@ -259,15 +259,17 @@ items:
|
|||||||
scopeSelector:
|
scopeSelector:
|
||||||
matchExpressions:
|
matchExpressions:
|
||||||
- operator : In
|
- operator : In
|
||||||
scopeName: PriorityClass
|
scopeName: PriorityClass
|
||||||
values: ["low"]
|
values: ["low"]
|
||||||
```
|
```
|
||||||
|
|
||||||
Apply the YAML using `kubectl create`.
|
Apply the YAML using `kubectl create`.
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
kubectl create -f ./quota.yml
|
kubectl create -f ./quota.yml
|
||||||
|
```
|
||||||
|
|
||||||
|
```shell
|
||||||
resourcequota/pods-high created
|
resourcequota/pods-high created
|
||||||
resourcequota/pods-medium created
|
resourcequota/pods-medium created
|
||||||
resourcequota/pods-low created
|
resourcequota/pods-low created
|
||||||
@@ -277,7 +279,9 @@ Verify that `Used` quota is `0` using `kubectl describe quota`.
|
|||||||
|
|
||||||
```shell
|
```shell
|
||||||
kubectl describe quota
|
kubectl describe quota
|
||||||
|
```
|
||||||
|
|
||||||
|
```shell
|
||||||
Name: pods-high
|
Name: pods-high
|
||||||
Namespace: default
|
Namespace: default
|
||||||
Resource Used Hard
|
Resource Used Hard
|
||||||
@@ -321,11 +325,11 @@ spec:
|
|||||||
args: ["-c", "while true; do echo hello; sleep 10;done"]
|
args: ["-c", "while true; do echo hello; sleep 10;done"]
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
memory: "10Gi"
|
memory: "10Gi"
|
||||||
cpu: "500m"
|
cpu: "500m"
|
||||||
limits:
|
limits:
|
||||||
memory: "10Gi"
|
memory: "10Gi"
|
||||||
cpu: "500m"
|
cpu: "500m"
|
||||||
priorityClassName: high
|
priorityClassName: high
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -340,7 +344,9 @@ the other two quotas are unchanged.
|
|||||||
|
|
||||||
```shell
|
```shell
|
||||||
kubectl describe quota
|
kubectl describe quota
|
||||||
|
```
|
||||||
|
|
||||||
|
```shell
|
||||||
Name: pods-high
|
Name: pods-high
|
||||||
Namespace: default
|
Namespace: default
|
||||||
Resource Used Hard
|
Resource Used Hard
|
||||||
|
|||||||
Reference in New Issue
Block a user