kuma

Форк
0
/
kuma.io_meshratelimits.yaml 
444 строки · 21.7 Кб
1
---
2
apiVersion: apiextensions.k8s.io/v1
3
kind: CustomResourceDefinition
4
metadata:
5
  annotations:
6
    controller-gen.kubebuilder.io/version: v0.14.0
7
  name: meshratelimits.kuma.io
8
spec:
9
  group: kuma.io
10
  names:
11
    categories:
12
    - kuma
13
    kind: MeshRateLimit
14
    listKind: MeshRateLimitList
15
    plural: meshratelimits
16
    singular: meshratelimit
17
  scope: Namespaced
18
  versions:
19
  - additionalPrinterColumns:
20
    - jsonPath: .spec.targetRef.kind
21
      name: TargetRef Kind
22
      type: string
23
    - jsonPath: .spec.targetRef.name
24
      name: TargetRef Name
25
      type: string
26
    name: v1alpha1
27
    schema:
28
      openAPIV3Schema:
29
        properties:
30
          apiVersion:
31
            description: |-
32
              APIVersion defines the versioned schema of this representation of an object.
33
              Servers should convert recognized schemas to the latest internal value, and
34
              may reject unrecognized values.
35
              More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
36
            type: string
37
          kind:
38
            description: |-
39
              Kind is a string value representing the REST resource this object represents.
40
              Servers may infer this from the endpoint the client submits requests to.
41
              Cannot be updated.
42
              In CamelCase.
43
              More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
44
            type: string
45
          metadata:
46
            type: object
47
          spec:
48
            description: Spec is the specification of the Kuma MeshRateLimit resource.
49
            properties:
50
              from:
51
                description: From list makes a match between clients and corresponding
52
                  configurations
53
                items:
54
                  properties:
55
                    default:
56
                      description: |-
57
                        Default is a configuration specific to the group of clients referenced in
58
                        'targetRef'
59
                      properties:
60
                        local:
61
                          description: LocalConf defines local http or/and tcp rate
62
                            limit configuration
63
                          properties:
64
                            http:
65
                              description: |-
66
                                LocalHTTP defines confguration of local HTTP rate limiting
67
                                https://www.envoyproxy.io/docs/envoy/latest/configuration/http/http_filters/local_rate_limit_filter
68
                              properties:
69
                                disabled:
70
                                  description: Define if rate limiting should be disabled.
71
                                  type: boolean
72
                                onRateLimit:
73
                                  description: Describes the actions to take on a
74
                                    rate limit event
75
                                  properties:
76
                                    headers:
77
                                      description: The Headers to be added to the
78
                                        HTTP response on a rate limit event
79
                                      properties:
80
                                        add:
81
                                          items:
82
                                            properties:
83
                                              name:
84
                                                maxLength: 256
85
                                                minLength: 1
86
                                                pattern: ^[a-z0-9!#$%&'*+\-.^_\x60|~]+$
87
                                                type: string
88
                                              value:
89
                                                type: string
90
                                            required:
91
                                            - name
92
                                            - value
93
                                            type: object
94
                                          maxItems: 16
95
                                          type: array
96
                                          x-kubernetes-list-map-keys:
97
                                          - name
98
                                          x-kubernetes-list-type: map
99
                                        set:
100
                                          items:
101
                                            properties:
102
                                              name:
103
                                                maxLength: 256
104
                                                minLength: 1
105
                                                pattern: ^[a-z0-9!#$%&'*+\-.^_\x60|~]+$
106
                                                type: string
107
                                              value:
108
                                                type: string
109
                                            required:
110
                                            - name
111
                                            - value
112
                                            type: object
113
                                          maxItems: 16
114
                                          type: array
115
                                          x-kubernetes-list-map-keys:
116
                                          - name
117
                                          x-kubernetes-list-type: map
118
                                      type: object
119
                                    status:
120
                                      description: The HTTP status code to be set
121
                                        on a rate limit event
122
                                      format: int32
123
                                      type: integer
124
                                  type: object
125
                                requestRate:
126
                                  description: Defines how many requests are allowed
127
                                    per interval.
128
                                  properties:
129
                                    interval:
130
                                      description: The interval the number of units
131
                                        is accounted for.
132
                                      type: string
133
                                    num:
134
                                      description: |-
135
                                        Number of units per interval (depending on usage it can be a number of requests,
136
                                        or a number of connections).
137
                                      format: int32
138
                                      type: integer
139
                                  required:
140
                                  - interval
141
                                  - num
142
                                  type: object
143
                              type: object
144
                            tcp:
145
                              description: |-
146
                                LocalTCP defines confguration of local TCP rate limiting
147
                                https://www.envoyproxy.io/docs/envoy/latest/configuration/listeners/network_filters/local_rate_limit_filter
148
                              properties:
149
                                connectionRate:
150
                                  description: Defines how many connections are allowed
151
                                    per interval.
152
                                  properties:
153
                                    interval:
154
                                      description: The interval the number of units
155
                                        is accounted for.
156
                                      type: string
157
                                    num:
158
                                      description: |-
159
                                        Number of units per interval (depending on usage it can be a number of requests,
160
                                        or a number of connections).
161
                                      format: int32
162
                                      type: integer
163
                                  required:
164
                                  - interval
165
                                  - num
166
                                  type: object
167
                                disabled:
168
                                  description: |-
169
                                    Define if rate limiting should be disabled.
170
                                    Default: false
171
                                  type: boolean
172
                              type: object
173
                          type: object
174
                      type: object
175
                    targetRef:
176
                      description: |-
177
                        TargetRef is a reference to the resource that represents a group of
178
                        clients.
179
                      properties:
180
                        kind:
181
                          description: Kind of the referenced resource
182
                          enum:
183
                          - Mesh
184
                          - MeshSubset
185
                          - MeshGateway
186
                          - MeshService
187
                          - MeshServiceSubset
188
                          - MeshHTTPRoute
189
                          type: string
190
                        mesh:
191
                          description: Mesh is reserved for future use to identify
192
                            cross mesh resources.
193
                          type: string
194
                        name:
195
                          description: |-
196
                            Name of the referenced resource. Can only be used with kinds: `MeshService`,
197
                            `MeshServiceSubset` and `MeshGatewayRoute`
198
                          type: string
199
                        proxyTypes:
200
                          description: |-
201
                            ProxyTypes specifies the data plane types that are subject to the policy. When not specified,
202
                            all data plane types are targeted by the policy.
203
                          items:
204
                            enum:
205
                            - Sidecar
206
                            - Gateway
207
                            type: string
208
                          minItems: 1
209
                          type: array
210
                        tags:
211
                          additionalProperties:
212
                            type: string
213
                          description: |-
214
                            Tags used to select a subset of proxies by tags. Can only be used with kinds
215
                            `MeshSubset` and `MeshServiceSubset`
216
                          type: object
217
                      type: object
218
                  required:
219
                  - targetRef
220
                  type: object
221
                type: array
222
              targetRef:
223
                description: |-
224
                  TargetRef is a reference to the resource the policy takes an effect on.
225
                  The resource could be either a real store object or virtual resource
226
                  defined inplace.
227
                properties:
228
                  kind:
229
                    description: Kind of the referenced resource
230
                    enum:
231
                    - Mesh
232
                    - MeshSubset
233
                    - MeshGateway
234
                    - MeshService
235
                    - MeshServiceSubset
236
                    - MeshHTTPRoute
237
                    type: string
238
                  mesh:
239
                    description: Mesh is reserved for future use to identify cross
240
                      mesh resources.
241
                    type: string
242
                  name:
243
                    description: |-
244
                      Name of the referenced resource. Can only be used with kinds: `MeshService`,
245
                      `MeshServiceSubset` and `MeshGatewayRoute`
246
                    type: string
247
                  proxyTypes:
248
                    description: |-
249
                      ProxyTypes specifies the data plane types that are subject to the policy. When not specified,
250
                      all data plane types are targeted by the policy.
251
                    items:
252
                      enum:
253
                      - Sidecar
254
                      - Gateway
255
                      type: string
256
                    minItems: 1
257
                    type: array
258
                  tags:
259
                    additionalProperties:
260
                      type: string
261
                    description: |-
262
                      Tags used to select a subset of proxies by tags. Can only be used with kinds
263
                      `MeshSubset` and `MeshServiceSubset`
264
                    type: object
265
                type: object
266
              to:
267
                description: To list makes a match between clients and corresponding
268
                  configurations
269
                items:
270
                  properties:
271
                    default:
272
                      description: |-
273
                        Default is a configuration specific to the group of clients referenced in
274
                        'targetRef'
275
                      properties:
276
                        local:
277
                          description: LocalConf defines local http or/and tcp rate
278
                            limit configuration
279
                          properties:
280
                            http:
281
                              description: |-
282
                                LocalHTTP defines confguration of local HTTP rate limiting
283
                                https://www.envoyproxy.io/docs/envoy/latest/configuration/http/http_filters/local_rate_limit_filter
284
                              properties:
285
                                disabled:
286
                                  description: Define if rate limiting should be disabled.
287
                                  type: boolean
288
                                onRateLimit:
289
                                  description: Describes the actions to take on a
290
                                    rate limit event
291
                                  properties:
292
                                    headers:
293
                                      description: The Headers to be added to the
294
                                        HTTP response on a rate limit event
295
                                      properties:
296
                                        add:
297
                                          items:
298
                                            properties:
299
                                              name:
300
                                                maxLength: 256
301
                                                minLength: 1
302
                                                pattern: ^[a-z0-9!#$%&'*+\-.^_\x60|~]+$
303
                                                type: string
304
                                              value:
305
                                                type: string
306
                                            required:
307
                                            - name
308
                                            - value
309
                                            type: object
310
                                          maxItems: 16
311
                                          type: array
312
                                          x-kubernetes-list-map-keys:
313
                                          - name
314
                                          x-kubernetes-list-type: map
315
                                        set:
316
                                          items:
317
                                            properties:
318
                                              name:
319
                                                maxLength: 256
320
                                                minLength: 1
321
                                                pattern: ^[a-z0-9!#$%&'*+\-.^_\x60|~]+$
322
                                                type: string
323
                                              value:
324
                                                type: string
325
                                            required:
326
                                            - name
327
                                            - value
328
                                            type: object
329
                                          maxItems: 16
330
                                          type: array
331
                                          x-kubernetes-list-map-keys:
332
                                          - name
333
                                          x-kubernetes-list-type: map
334
                                      type: object
335
                                    status:
336
                                      description: The HTTP status code to be set
337
                                        on a rate limit event
338
                                      format: int32
339
                                      type: integer
340
                                  type: object
341
                                requestRate:
342
                                  description: Defines how many requests are allowed
343
                                    per interval.
344
                                  properties:
345
                                    interval:
346
                                      description: The interval the number of units
347
                                        is accounted for.
348
                                      type: string
349
                                    num:
350
                                      description: |-
351
                                        Number of units per interval (depending on usage it can be a number of requests,
352
                                        or a number of connections).
353
                                      format: int32
354
                                      type: integer
355
                                  required:
356
                                  - interval
357
                                  - num
358
                                  type: object
359
                              type: object
360
                            tcp:
361
                              description: |-
362
                                LocalTCP defines confguration of local TCP rate limiting
363
                                https://www.envoyproxy.io/docs/envoy/latest/configuration/listeners/network_filters/local_rate_limit_filter
364
                              properties:
365
                                connectionRate:
366
                                  description: Defines how many connections are allowed
367
                                    per interval.
368
                                  properties:
369
                                    interval:
370
                                      description: The interval the number of units
371
                                        is accounted for.
372
                                      type: string
373
                                    num:
374
                                      description: |-
375
                                        Number of units per interval (depending on usage it can be a number of requests,
376
                                        or a number of connections).
377
                                      format: int32
378
                                      type: integer
379
                                  required:
380
                                  - interval
381
                                  - num
382
                                  type: object
383
                                disabled:
384
                                  description: |-
385
                                    Define if rate limiting should be disabled.
386
                                    Default: false
387
                                  type: boolean
388
                              type: object
389
                          type: object
390
                      type: object
391
                    targetRef:
392
                      description: |-
393
                        TargetRef is a reference to the resource that represents a group of
394
                        clients.
395
                      properties:
396
                        kind:
397
                          description: Kind of the referenced resource
398
                          enum:
399
                          - Mesh
400
                          - MeshSubset
401
                          - MeshGateway
402
                          - MeshService
403
                          - MeshServiceSubset
404
                          - MeshHTTPRoute
405
                          type: string
406
                        mesh:
407
                          description: Mesh is reserved for future use to identify
408
                            cross mesh resources.
409
                          type: string
410
                        name:
411
                          description: |-
412
                            Name of the referenced resource. Can only be used with kinds: `MeshService`,
413
                            `MeshServiceSubset` and `MeshGatewayRoute`
414
                          type: string
415
                        proxyTypes:
416
                          description: |-
417
                            ProxyTypes specifies the data plane types that are subject to the policy. When not specified,
418
                            all data plane types are targeted by the policy.
419
                          items:
420
                            enum:
421
                            - Sidecar
422
                            - Gateway
423
                            type: string
424
                          minItems: 1
425
                          type: array
426
                        tags:
427
                          additionalProperties:
428
                            type: string
429
                          description: |-
430
                            Tags used to select a subset of proxies by tags. Can only be used with kinds
431
                            `MeshSubset` and `MeshServiceSubset`
432
                          type: object
433
                      type: object
434
                  required:
435
                  - targetRef
436
                  type: object
437
                type: array
438
            required:
439
            - targetRef
440
            type: object
441
        type: object
442
    served: true
443
    storage: true
444
    subresources: {}
445

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.