mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 05:27:21 +00:00
Update quota example in admission_control_resource_quota.md
Two modifications: 1, The example used in this document is outdated so update it 2, Delete the old `kubectl namespace myspace` since it produces an error `error: namespace has been superceded by the context.namespace field of .kubeconfig files`
This commit is contained in:
parent
b5a4a548df
commit
8d599aae4f
@ -201,21 +201,25 @@ kubectl is modified to support the **ResourceQuota** resource.
|
|||||||
For example,
|
For example,
|
||||||
|
|
||||||
```console
|
```console
|
||||||
$ kubectl namespace myspace
|
$ kubectl create -f docs/user-guide/resourcequota/namespace.yaml
|
||||||
$ kubectl create -f docs/user-guide/resourcequota/quota.yaml
|
namespace "quota-example" created
|
||||||
$ kubectl get quota
|
$ kubectl create -f docs/user-guide/resourcequota/quota.yaml --namespace=quota-example
|
||||||
NAME
|
resourcequota "quota" created
|
||||||
quota
|
$ kubectl describe quota quota --namespace=quota-example
|
||||||
$ kubectl describe quota quota
|
Name: quota
|
||||||
Name: quota
|
Namespace: quota-example
|
||||||
Resource Used Hard
|
Resource Used Hard
|
||||||
-------- ---- ----
|
-------- ---- ----
|
||||||
cpu 0m 20
|
cpu 0 20
|
||||||
memory 0 1Gi
|
memory 0 1Gi
|
||||||
pods 5 10
|
persistentvolumeclaims 0 10
|
||||||
replicationcontrollers 5 20
|
pods 0 10
|
||||||
resourcequotas 1 1
|
replicationcontrollers 0 20
|
||||||
services 3 5
|
resourcequotas 1 1
|
||||||
|
secrets 1 10
|
||||||
|
services 0 5
|
||||||
|
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
## More information
|
## More information
|
||||||
|
Loading…
Reference in New Issue
Block a user