1
1
[[admin-guide-muliproject-quota]]
2
- = Multi-Project Quotas
2
+ = Setting Multi-Project Quotas
3
3
{product-author}
4
4
{product-version}
5
5
:data-uri:
@@ -13,17 +13,28 @@ toc::[]
13
13
14
14
== Overview
15
15
16
- A multi-project quota, defined by a `*ClusterResourceQuota*` object, allows xref:../admin_guide/quota.adoc#admin-guide-quota[quota]
17
- to be shared across multiple projects. Resources used in each selected project
18
- will be aggregated and that aggregate will be used to limit resources across
19
- all the selected projects.
16
+ A multi-project quota, defined by a `*ClusterResourceQuota*` object, allows
17
+ xref:../admin_guide/quota.adoc#admin-guide-quota[quotas] to be shared across
18
+ multiple projects. Resources used in each selected project will be aggregated
19
+ and that aggregate will be used to limit resources across all the selected
20
+ projects.
20
21
21
22
[[multi-project-quotas-selecting-projects]]
22
- === Selecting Projects
23
+ == Selecting Projects
23
24
24
25
Projects can be selected based on either annotation selection, label selection, or both.
25
- For example, `oc create clusterquota for-user --project-annotation-selector openshift.io/requester=<user-name> --hard pods=10 --hard secrets=20`
26
- creates:
26
+ For example:
27
+
28
+ ====
29
+ ----
30
+ $ oc create clusterquota for-user \
31
+ --project-annotation-selector openshift.io/requester=<user-name> \
32
+ --hard pods=10 \
33
+ --hard secrets=20
34
+ ----
35
+ ====
36
+
37
+ creates:
27
38
28
39
====
29
40
[source,yaml]
@@ -59,25 +70,32 @@ status:
59
70
pods: "1"
60
71
secrets: "9"
61
72
----
62
- <1> The ResourceQuotaSpec object that will be enforced over the selected projects
63
- <2> A simple key/value selector for annotations
64
- <3> A label selector that can be used to select projects
65
- <4> A per-namespace map that describes current quota usage in each selected project
66
- <5> The aggregate usage across all selected projects
73
+ <1> The `* ResourceQuotaSpec*` object that will be enforced over the selected projects.
74
+ <2> A simple key/value selector for annotations.
75
+ <3> A label selector that can be used to select projects.
76
+ <4> A per-namespace map that describes current quota usage in each selected project.
77
+ <5> The aggregate usage across all selected projects.
67
78
====
68
79
69
- This multi-project quota document will control all projects requested by `"<user-name>"` using the default
70
- project request endpoint. He will be limited to ten pods and twenty secrets.
80
+ This multi-project quota document controls all projects requested by
81
+ *<user-name>* using the default project request endpoint. You are limited to 10
82
+ pods and 20 secrets.
71
83
72
84
73
85
[[multi-project-quotas-viewing-applicable-clusterresourcequotas]]
74
- === Viewing Applicable ClusterResourceQuotas
86
+ == Viewing Applicable `*ClusterResourceQuotas*`
87
+
88
+ A project administrator is not allowed to create or modify the multi-project
89
+ quota that limits his or her project, but the administrator is allowed to view the
90
+ multi-project quota documents that are applied to his or her project. The
91
+ project administrator can do this via the `*AppliedClusterResourceQuota*`
92
+ resource.
75
93
76
- A project-admin is not allowed to create or modify the multi-project quota that limits
77
- him, but he is allowed to view the multi-project quota documents are applied to his project.
78
- He can do this via the `*AppliedClusterResourceQuota*` resource.
94
+ ----
95
+ $ oc describe AppliedClusterResourceQuota
96
+ ----
79
97
80
- `oc describe AppliedClusterResourceQuota` produces:
98
+ produces:
81
99
82
100
====
83
101
----
@@ -97,9 +115,9 @@ secrets 9 20
97
115
98
116
99
117
[[multi-project-quotas-selection-granularity]]
100
- === Selection Granularity
118
+ == Selection Granularity
101
119
102
- Because of the locking consideration when claiming quota allocations, the
103
- number of active projects selected by a multi-project quota is an important consideration.
120
+ Due to the locking consideration when claiming quota allocations, the number of
121
+ active projects selected by a multi-project quota is an important consideration.
104
122
Selecting more than 100 projects under a single multi-project quota may have
105
- deleterious effects on API server responsiveness in those projects.
123
+ detrimental effects on API server responsiveness in those projects.
0 commit comments