@@ -58,3 +58,142 @@ spec:
58
58
max:
59
59
storage: "50Gi"
60
60
```
61
+
62
+ ### Container Limits
63
+
64
+ ```
65
+ apiVersion: "v1"
66
+ kind: "LimitRange"
67
+ metadata:
68
+ name: "resource-limits" [1]
69
+ spec:
70
+ limits:
71
+ - type: "Container"
72
+ max:
73
+ cpu: "2" [2]
74
+ memory: "1Gi" [3]
75
+ min:
76
+ cpu: "100m" [4]
77
+ memory: "4Mi" [5]
78
+ default:
79
+ cpu: "300m" [6]
80
+ memory: "200Mi" [7]
81
+ defaultRequest:
82
+ cpu: "200m" [8]
83
+ memory: "100Mi" [9]
84
+ maxLimitRequestRatio:
85
+ cpu: "10" [10]
86
+ ```
87
+
88
+ [ 1] The name of the _ LimitRange_ object
89
+
90
+ [ 2] The maximum amount of CPU that a single container in a pod can request
91
+
92
+ [ 3] The maximum amount of memory that a single container in a pod can request
93
+
94
+ [ 4] The minimum amount of CPU that a single container in a pod can request
95
+
96
+ [ 5] The minimum amount of memory that a single container in a pod can request
97
+
98
+ [ 6] The default amount of CPU that a container can use if not specified in the _ Pod_ spec
99
+
100
+ [ 7] The default amount of memory that a container can use if not specified in teh _ Pod_ spec
101
+
102
+ [ 8] The default amount of CPU that a contianer can request if not specified in the _ Pod_ spec
103
+
104
+ [ 9] The default amount of memory that a container can request if not specified in the _ Pod_ spec
105
+
106
+ [ 10] The maximum limit-to-request ratio for a container
107
+
108
+ ### Pod Limits
109
+
110
+ ```
111
+ apiVersion: "v1"
112
+ kind: "LimitRange"
113
+ metadata:
114
+ name: "resource-limits" [1]
115
+ spec:
116
+ limits:
117
+ - type: "Pod"
118
+ max:
119
+ cpu: "2" [2]
120
+ memory: "1Gi" [3]
121
+ min:
122
+ cpu: "200m" [4]
123
+ memory: "6Mi" [5]
124
+ maxLimitRequestRatio:
125
+ cpu: "10" [6]
126
+ ```
127
+
128
+ [ 1] The name of the _ LimitRange_ object
129
+
130
+ [ 2] The maximum amount of CPU that a pod can request across all containers
131
+
132
+ [ 3] The maximum amount of memory that a pod can request across all containers
133
+
134
+ [ 4] The minimum amount of CPU that a pod can request across all containers
135
+
136
+ [ 5] The minimum amount of memory that a pod can request across all containers
137
+
138
+ [ 6] The maximum limit-to-request ration for a container
139
+
140
+ ### Image Limits
141
+
142
+ ```
143
+ apiVersion: "v1"
144
+ kind: "LimitRange"
145
+ metadata:
146
+ name: "resource-limits" [1]
147
+ spec:
148
+ limits:
149
+ - type: openshift.io/Image
150
+ max:
151
+ storage: 1Gi [2]
152
+ ```
153
+
154
+ [ 1] The name of the _ LimitRange_ object
155
+
156
+ [ 2] The maximum size of an image that can be pushed to a registry
157
+
158
+ ### Image Stream Limits
159
+
160
+ ```
161
+ apiVersion: "v1"
162
+ kind: "LimitRange"
163
+ metadata:
164
+ name: "resource-limits" [1]
165
+ spec:
166
+ limits:
167
+ - type: openshift.io/ImageStream
168
+ max:
169
+ openshift.io/image-tags: 20 [2]
170
+ openshift.io/images: 30 [3]
171
+ ```
172
+
173
+ [ 1] The name of the _ LimitRange_ object
174
+
175
+ [ 2] The maximum number of unique image tags in the _ imagestream.spec.tags_ parameter in _ imagestream_ spec
176
+
177
+ [ 3] The maximum number of unique image regerenes in the _ imagestream.status.tags_ parameter in the _ imagestream_ spec
178
+
179
+ ### Persistent Volume Claim Limits
180
+
181
+ ```
182
+ apiVersion: "v1"
183
+ kind: "LimitRange"
184
+ metadata:
185
+ name: "resource-limits" [1]
186
+ spec:
187
+ limits:
188
+ - type: "PersistentVolumeClaim"
189
+ min:
190
+ storage: "2Gi" [2]
191
+ max:
192
+ storage: "50Gi" [3]
193
+ ```
194
+
195
+ [ 1] The name of the _ LimitRange_ object
196
+
197
+ [ 2] The minimum amount of storage that can be requested in a persistent volume claim
198
+
199
+ [ 3] The maximum amount of storage that can be requested in a persistent volume claim
0 commit comments