@@ -13,11 +13,13 @@ package: eventratelimit.admission.k8s.io/v1alpha1
13
13
14
14
## ` Configuration ` {#eventratelimit-admission-k8s-io-v1alpha1-Configuration}
15
15
16
+ <p >
16
17
<!--
17
- <p> Configuration provides configuration for the EventRateLimit admission
18
- controller.</p>
18
+ Configuration provides configuration for the EventRateLimit admission
19
+ controller.
19
20
-->
20
- <p >Configuration 为 EventRateLimit 准入控制器提供配置数据。</p >
21
+ Configuration 为 EventRateLimit 准入控制器提供配置数据。
22
+ </p >
21
23
22
24
<table class =" table " >
23
25
<thead ><tr ><th width =" 30% " ><!-- Field--> 字段</th ><th ><!-- Description--> 描述</th ></tr ></thead >
@@ -26,19 +28,21 @@ controller.</p>
26
28
<tr ><td ><code >apiVersion</code ><br />string</td ><td ><code >eventratelimit.admission.k8s.io/v1alpha1</code ></td ></tr >
27
29
<tr ><td ><code >kind</code ><br />string</td ><td ><code >Configuration</code ></td ></tr >
28
30
29
- <tr ><td ><code >limits</code > <B >[Required]</B ><br />
31
+ <tr ><td ><code >limits</code > <B ><!-- [Required] --> [必需 ]</B ><br />
30
32
<a href =" #eventratelimit-admission-k8s-io-v1alpha1-Limit " ><code >[ ] Limit</code ></a >
31
33
</td >
32
34
<td >
35
+ <p >
33
36
<!--
34
- <p> limits are the limits to place on event queries received.
37
+ limits are the limits to place on event queries received.
35
38
Limits can be placed on events received server-wide, per namespace,
36
39
per user, and per source+object.
37
- At least one limit is required.</p>
40
+ At least one limit is required.
38
41
-->
39
- <p >limits 是为所接收到的事件查询设置的限制。可以针对服务器端接收到的事件设置限制,
42
+ <code >limits</ code > 是为所接收到的事件查询设置的限制。可以针对服务器端接收到的事件设置限制,
40
43
按逐个名字空间、逐个用户、或逐个来源+对象组合的方式均可以。
41
- 至少需要设置一种限制。</p >
44
+ 至少需要设置一种限制。
45
+ </p >
42
46
</td >
43
47
</tr >
44
48
</tbody >
@@ -53,10 +57,12 @@ At least one limit is required.</p>
53
57
54
58
- [ Configuration] ( #eventratelimit-admission-k8s-io-v1alpha1-Configuration )
55
59
60
+ <p >
56
61
<!--
57
- <p> Limit is the configuration for a particular limit type</p>
62
+ Limit is the configuration for a particular limit type
58
63
-->
59
- <p >Limit 是为特定限制类型提供的配置数据。</p >
64
+ <code >Limit</code > 是为特定限制类型提供的配置数据。
65
+ </p >
60
66
61
67
<table class =" table " >
62
68
<thead ><tr ><th width =" 30% " ><!-- Field--> 字段</th ><th ><!-- Description--> 描述</th ></tr ></thead >
@@ -66,33 +72,38 @@ At least one limit is required.</p>
66
72
<a href =" #eventratelimit-admission-k8s-io-v1alpha1-LimitType " ><code >LimitType</code ></a >
67
73
</td >
68
74
<td >
69
- <!--
70
- <p>type is the type of limit to which this configuration applies</p>
71
- -->
72
- <p >type 是此配置所适用的限制的类型。</p >
75
+ <p >
76
+ <!--
77
+ type is the type of limit to which this configuration applies
78
+ -->
79
+ <code >type</code > 是此配置所适用的限制的类型。
80
+ </p >
73
81
</td >
74
82
</tr >
75
83
<tr ><td ><code >qps</code > <B ><!-- [Required]--> [必需]</B ><br />
76
84
<code >int32</code >
77
85
</td >
78
86
<td >
87
+ <p >
79
88
<!--
80
- <p> qps is the number of event queries per second that are allowed for this
89
+ qps is the number of event queries per second that are allowed for this
81
90
type of limit. The qps and burst fields are used together to determine if
82
91
a particular event query is accepted. The qps determines how many queries
83
- are accepted once the burst amount of queries has been exhausted.</p>
92
+ are accepted once the burst amount of queries has been exhausted.
84
93
-->
85
- < p >qps 是针对此类型的限制每秒钟所允许的事件查询次数。qps 和 burst
94
+ < code >qps</ code > 是针对此类型的限制每秒钟所允许的事件查询次数。qps 和 burst
86
95
字段一起用来确定是否特定的事件查询会被接受。qps 确定的是当超出查询数量的
87
- burst 值时可以接受的查询个数。</p >
96
+ burst 值时可以接受的查询个数。
97
+ </p >
88
98
</td >
89
99
</tr >
90
100
<tr ><td ><code >burst</code > <B ><!-- [Required]--> [必需]</B ><br />
91
101
<code >int32</code >
92
102
</td >
93
103
<td >
104
+ <p >
94
105
<!--
95
- <p> burst is the burst number of event queries that are allowed for this type
106
+ burst is the burst number of event queries that are allowed for this type
96
107
of limit. The qps and burst fields are used together to determine if a
97
108
particular event query is accepted. The burst determines the maximum size
98
109
of the allowance granted for a particular bucket. For example, if the burst
@@ -101,31 +112,42 @@ before blocking any queries. Every second, 3 more queries will be allowed.
101
112
If some of that allowance is not used, then it will roll over to the next
102
113
second, until the maximum allowance of 10 is reached.</p>
103
114
-->
104
- < p > burst 是针对此类型限制的突发事件查询数量。qps 和 burst 字段一起使用可用来确定特定的事件查询是否被接受。
115
+ burst 是针对此类型限制的突发事件查询数量。qps 和 burst 字段一起使用可用来确定特定的事件查询是否被接受。
105
116
burst 字段确定针对特定的事件桶(bucket)可以接受的规模上限。
106
117
例如,如果 burst 是 10,qps 是 3,那么准入控制器会在接收 10 个查询之后阻塞所有查询。
107
118
每秒钟可以额外允许 3 个查询。如果这一限额未被用尽,则剩余的限额会被顺延到下一秒钟,
108
- 直到再次达到 10 个限额的上限。</p >
119
+ 直到再次达到 10 个限额的上限。
120
+ </p >
109
121
</td >
110
122
</tr >
111
123
<tr ><td ><code >cacheSize</code ><br />
112
124
<code >int32</code >
113
125
</td >
114
126
<td >
127
+ <p >
115
128
<!--
116
- <p> cacheSize is the size of the LRU cache for this type of limit. If a bucket
129
+ cacheSize is the size of the LRU cache for this type of limit. If a bucket
117
130
is evicted from the cache, then the allowance for that bucket is reset. If
118
131
more queries are later received for an evicted bucket, then that bucket
119
132
will re-enter the cache with a clean slate, giving that bucket a full
120
- allowance of burst queries.</p>
121
- <p>The default cache size is 4096.</p>
122
- <p>If limitType is 'server', then cacheSize is ignored.</p>
133
+ allowance of burst queries.
123
134
-->
124
- < p >cacheSize 是此类型限制的 LRU 缓存的规模。如果某个事件桶(bucket)被从缓存中剔除,
135
+ < code >cacheSize</ code > 是此类型限制的 LRU 缓存的规模。如果某个事件桶(bucket)被从缓存中剔除,
125
136
该事件桶所对应的限额也会被重置。如果后来再次收到针对某个已被剔除的事件桶的查询,
126
- 则该事件桶会重新以干净的状态进入缓存,因而获得全量的突发查询配额。</p >
127
- <p >默认的缓存大小是 4096。</p >
128
- <p >如果 limitType 是 “server”,则 cacheSize 设置会被忽略。</p >
137
+ 则该事件桶会重新以干净的状态进入缓存,因而获得全量的突发查询配额。
138
+ </p >
139
+ <p >
140
+ <!--
141
+ The default cache size is 4096.
142
+ -->
143
+ 默认的缓存大小是 4096。
144
+ </p >
145
+ <p >
146
+ <!--
147
+ If limitType is 'server', then cacheSize is ignored.
148
+ -->
149
+ 如果 limitType 是 “server”,则 cacheSize 设置会被忽略。
150
+ </p >
129
151
</td >
130
152
</tr >
131
153
</tbody >
@@ -144,9 +166,9 @@ allowance of burst queries.</p>
144
166
145
167
- [ Limit] ( #eventratelimit-admission-k8s-io-v1alpha1-Limit )
146
168
169
+ <p >
147
170
<!--
148
- <p> LimitType is the type of the limit (e.g., per-namespace)</p>
171
+ LimitType is the type of the limit (e.g., per-namespace)
149
172
-->
150
- <p >LimitType 是限制类型(例如:per-namespace)。</p >
151
-
152
-
173
+ <code >LimitType</code > 是限制类型(例如:per-namespace,即按命名空间限制)。
174
+ </p >
0 commit comments