@@ -6,7 +6,7 @@ api_metadata:
6
6
content_type : " api_reference"
7
7
description : " LimitRange 设置名字空间中每个资源类别的资源用量限制。"
8
8
title : " LimitRange"
9
- weight : 1
9
+ weight : 2
10
10
---
11
11
<!--
12
12
api_metadata:
@@ -16,7 +16,7 @@ api_metadata:
16
16
content_type: "api_reference"
17
17
description: "LimitRange sets resource usage limits for each kind of resource in a Namespace."
18
18
title: "LimitRange"
19
- weight: 1
19
+ weight: 2
20
20
auto_generated: true
21
21
-->
22
22
@@ -25,6 +25,7 @@ auto_generated: true
25
25
` import "k8s.io/api/core/v1" `
26
26
27
27
## LimitRange {#LimitRange}
28
+
28
29
<!--
29
30
LimitRange sets resource usage limits for each kind of resource in a Namespace.
30
31
-->
@@ -38,9 +39,11 @@ LimitRange 设置名字空间中每个资源类别的资源用量限制。
38
39
39
40
<!--
40
41
- **metadata** (<a href="{{< ref "../common-definitions/object-meta#ObjectMeta" >}}">ObjectMeta</a>)
42
+
41
43
Standard object's metadata. More info: http://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
42
44
43
45
- **spec** (<a href="{{< ref "../policy-resources/limit-range-v1#LimitRangeSpec" >}}">LimitRangeSpec</a>)
46
+
44
47
Spec defines the limits enforced. More info: http://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
45
48
-->
46
49
- ** metadata** (<a href="{{< ref "../common-definitions/object-meta#ObjectMeta" >}}">ObjectMeta</a >)
@@ -64,6 +67,9 @@ LimitRangeSpec 定义与类别匹配的资源的最小/最大使用限制。
64
67
65
68
<!--
66
69
- **limits** ([]LimitRangeItem), required
70
+
71
+ *Atomic: will be replaced during a merge*
72
+
67
73
Limits is the list of LimitRangeItem objects that are enforced.
68
74
69
75
<a name="LimitRangeItem"></a>
@@ -74,6 +80,8 @@ LimitRangeSpec 定义与类别匹配的资源的最小/最大使用限制。
74
80
-->
75
81
- ** limits** ([ ] LimitRangeItem),必需
76
82
83
+ ** 原子:将在合并期间被替换**
84
+
77
85
limits 是强制执行的 LimitRangeItem 对象的列表。
78
86
79
87
<a name =" LimitRangeItem " ></a >
@@ -85,12 +93,15 @@ LimitRangeSpec 定义与类别匹配的资源的最小/最大使用限制。
85
93
86
94
<!--
87
95
- **limits.default** (map[string]<a href="{{< ref "../common-definitions/quantity#Quantity" >}}">Quantity</a>)
96
+
88
97
Default resource requirement limit value by resource name if resource limit is omitted.
89
98
90
99
- **limits.defaultRequest** (map[string]<a href="{{< ref "../common-definitions/quantity#Quantity" >}}">Quantity</a>)
100
+
91
101
DefaultRequest is the default resource requirement request value by resource name if resource request is omitted.
92
102
93
103
- **limits.max** (map[string]<a href="{{< ref "../common-definitions/quantity#Quantity" >}}">Quantity</a>)
104
+
94
105
Max usage constraints on this kind by resource name.
95
106
-->
96
107
@@ -108,9 +119,11 @@ LimitRangeSpec 定义与类别匹配的资源的最小/最大使用限制。
108
119
109
120
<!--
110
121
- **limits.maxLimitRequestRatio** (map[string]<a href="{{< ref "../common-definitions/quantity#Quantity" >}}">Quantity</a>)
122
+
111
123
MaxLimitRequestRatio if specified, the named resource must have a request and limit that are both non-zero where limit divided by request is less than or equal to the enumerated value; this represents the max burst for the named resource.
112
124
113
125
- **limits.min** (map[string]<a href="{{< ref "../common-definitions/quantity#Quantity" >}}">Quantity</a>)
126
+
114
127
Min usage constraints on this kind by resource name.
115
128
-->
116
129
@@ -138,9 +151,11 @@ LimitRangeList 是 LimitRange 项的列表。
138
151
139
152
<!--
140
153
- **metadata** (<a href="{{< ref "../common-definitions/list-meta#ListMeta" >}}">ListMeta</a>)
154
+
141
155
Standard list metadata. More info: http://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
142
156
143
157
- **items** ([]<a href="{{< ref "../policy-resources/limit-range-v1#LimitRange" >}}">LimitRange</a>), required
158
+
144
159
Items is a list of LimitRange objects. More info: http://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
145
160
-->
146
161
- ** metadata** (<a href="{{< ref "../common-definitions/list-meta#ListMeta" >}}">ListMeta</a >)
@@ -160,10 +175,13 @@ LimitRangeList 是 LimitRange 项的列表。
160
175
#### HTTP Request
161
176
-->
162
177
## 操作 {#Operations}
178
+
163
179
<hr >
164
180
165
181
### ` get ` 读取指定的 LimitRange
182
+
166
183
#### HTTP 请求
184
+
167
185
GET /api/v1/namespaces/{namespace}/limitranges/{name}
168
186
169
187
<!--
@@ -177,7 +195,7 @@ GET /api/v1/namespaces/{namespace}/limitranges/{name}
177
195
178
196
- ** name** (** 路径参数** ): string,必需
179
197
180
- LimitRange 的名称
198
+ LimitRange 的名称。
181
199
182
200
- ** namespace** (** 路径参数** ): string,必需
183
201
@@ -191,6 +209,7 @@ GET /api/v1/namespaces/{namespace}/limitranges/{name}
191
209
#### Response
192
210
-->
193
211
#### 响应
212
+
194
213
200 (<a href="{{< ref "../policy-resources/limit-range-v1#LimitRange" >}}">LimitRange</a >): OK
195
214
196
215
401: Unauthorized
@@ -200,7 +219,9 @@ GET /api/v1/namespaces/{namespace}/limitranges/{name}
200
219
#### HTTP Request
201
220
-->
202
221
### ` list ` 列出或监视 LimitRange 类别的对象
222
+
203
223
#### HTTP 请求
224
+
204
225
GET /api/v1/namespaces/{namespace}/limitranges
205
226
206
227
<!--
@@ -272,6 +293,7 @@ GET /api/v1/namespaces/{namespace}/limitranges
272
293
#### Response
273
294
-->
274
295
#### 响应
296
+
275
297
200 (<a href="{{< ref "../policy-resources/limit-range-v1#LimitRangeList" >}}">LimitRangeList</a >): OK
276
298
277
299
401: Unauthorized
@@ -281,7 +303,9 @@ GET /api/v1/namespaces/{namespace}/limitranges
281
303
#### HTTP Request
282
304
-->
283
305
### ` list ` 列出或监视 LimitRange 类别的对象
306
+
284
307
#### HTTP 请求
308
+
285
309
GET /api/v1/limitranges
286
310
287
311
<!--
@@ -357,7 +381,9 @@ GET /api/v1/limitranges
357
381
#### HTTP Request
358
382
-->
359
383
### ` create ` 创建 LimitRange
384
+
360
385
#### HTTP 请求
386
+
361
387
POST /api/v1/namespaces/{namespace}/limitranges
362
388
363
389
<!--
@@ -397,6 +423,7 @@ POST /api/v1/namespaces/{namespace}/limitranges
397
423
#### Response
398
424
-->
399
425
#### 响应
426
+
400
427
200 (<a href="{{< ref "../policy-resources/limit-range-v1#LimitRange" >}}">LimitRange</a >): OK
401
428
402
429
201 (<a href="{{< ref "../policy-resources/limit-range-v1#LimitRange" >}}">LimitRange</a >): Created
@@ -410,7 +437,9 @@ POST /api/v1/namespaces/{namespace}/limitranges
410
437
#### HTTP Request
411
438
-->
412
439
### ` update ` 替换指定的 LimitRange
440
+
413
441
#### HTTP 请求
442
+
414
443
PUT /api/v1/namespaces/{namespace}/limitranges/{name}
415
444
416
445
<!--
@@ -428,7 +457,7 @@ PUT /api/v1/namespaces/{namespace}/limitranges/{name}
428
457
429
458
- ** name** (** 路径参数** ): string,必需
430
459
431
- LimitRange 的名称
460
+ LimitRange 的名称。
432
461
433
462
- ** namespace** (** 路径参数** ): string,必需
434
463
@@ -456,6 +485,7 @@ PUT /api/v1/namespaces/{namespace}/limitranges/{name}
456
485
#### Response
457
486
-->
458
487
#### 响应
488
+
459
489
200 (<a href="{{< ref "../policy-resources/limit-range-v1#LimitRange" >}}">LimitRange</a >): OK
460
490
461
491
201 (<a href="{{< ref "../policy-resources/limit-range-v1#LimitRange" >}}">LimitRange</a >): Created
@@ -467,7 +497,9 @@ PUT /api/v1/namespaces/{namespace}/limitranges/{name}
467
497
#### HTTP Request
468
498
-->
469
499
### ` patch ` 部分更新指定的 LimitRange
500
+
470
501
#### HTTP 请求
502
+
471
503
PATCH /api/v1/namespaces/{namespace}/limitranges/{name}
472
504
473
505
<!--
@@ -486,7 +518,7 @@ PATCH /api/v1/namespaces/{namespace}/limitranges/{name}
486
518
487
519
- ** name** (** 路径参数** ): string,必需
488
520
489
- LimitRange 的名称
521
+ LimitRange 的名称。
490
522
491
523
- ** namespace** (** 路径参数** ): string,必需
492
524
@@ -518,6 +550,7 @@ PATCH /api/v1/namespaces/{namespace}/limitranges/{name}
518
550
#### Response
519
551
-->
520
552
#### 响应
553
+
521
554
200 (<a href="{{< ref "../policy-resources/limit-range-v1#LimitRange" >}}">LimitRange</a >): OK
522
555
523
556
201 (<a href="{{< ref "../policy-resources/limit-range-v1#LimitRange" >}}">LimitRange</a >): Created
@@ -529,7 +562,9 @@ PATCH /api/v1/namespaces/{namespace}/limitranges/{name}
529
562
#### HTTP Request
530
563
-->
531
564
### ` delete ` 删除 LimitRange
565
+
532
566
#### HTTP 请求
567
+
533
568
DELETE /api/v1/namespaces/{namespace}/limitranges/{name}
534
569
535
570
<!--
@@ -547,7 +582,7 @@ DELETE /api/v1/namespaces/{namespace}/limitranges/{name}
547
582
548
583
- ** name** (** 路径参数** ): string,必需
549
584
550
- LimitRange 的名称
585
+ LimitRange 的名称。
551
586
552
587
- ** namespace** (** 路径参数** ): string,必需
553
588
@@ -575,6 +610,7 @@ DELETE /api/v1/namespaces/{namespace}/limitranges/{name}
575
610
#### Response
576
611
-->
577
612
#### 响应
613
+
578
614
200 (<a href="{{< ref "../common-definitions/status#Status" >}}">Status</a >): OK
579
615
580
616
202 (<a href="{{< ref "../common-definitions/status#Status" >}}">Status</a >): Accepted
@@ -586,7 +622,9 @@ DELETE /api/v1/namespaces/{namespace}/limitranges/{name}
586
622
#### HTTP Request
587
623
-->
588
624
### ` deletecollection ` 删除 LimitRange 的集合
625
+
589
626
#### HTTP 请求
627
+
590
628
DELETE /api/v1/namespaces/{namespace}/limitranges
591
629
592
630
<!--
@@ -665,6 +703,7 @@ DELETE /api/v1/namespaces/{namespace}/limitranges
665
703
#### Response
666
704
-->
667
705
#### 响应
706
+
668
707
200 (<a href="{{< ref "../common-definitions/status#Status" >}}">Status</a >): OK
669
708
670
709
401: Unauthorized
0 commit comments