kuma

Форк
0
/
kuma.io_meshhealthchecks.yaml 
346 строк · 16.8 Кб
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: meshhealthchecks.kuma.io
8
spec:
9
  group: kuma.io
10
  names:
11
    categories:
12
    - kuma
13
    kind: MeshHealthCheck
14
    listKind: MeshHealthCheckList
15
    plural: meshhealthchecks
16
    singular: meshhealthcheck
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 MeshHealthCheck resource.
49
            properties:
50
              targetRef:
51
                description: |-
52
                  TargetRef is a reference to the resource the policy takes an effect on.
53
                  The resource could be either a real store object or virtual resource
54
                  defined inplace.
55
                properties:
56
                  kind:
57
                    description: Kind of the referenced resource
58
                    enum:
59
                    - Mesh
60
                    - MeshSubset
61
                    - MeshGateway
62
                    - MeshService
63
                    - MeshServiceSubset
64
                    - MeshHTTPRoute
65
                    type: string
66
                  mesh:
67
                    description: Mesh is reserved for future use to identify cross
68
                      mesh resources.
69
                    type: string
70
                  name:
71
                    description: |-
72
                      Name of the referenced resource. Can only be used with kinds: `MeshService`,
73
                      `MeshServiceSubset` and `MeshGatewayRoute`
74
                    type: string
75
                  proxyTypes:
76
                    description: |-
77
                      ProxyTypes specifies the data plane types that are subject to the policy. When not specified,
78
                      all data plane types are targeted by the policy.
79
                    items:
80
                      enum:
81
                      - Sidecar
82
                      - Gateway
83
                      type: string
84
                    minItems: 1
85
                    type: array
86
                  tags:
87
                    additionalProperties:
88
                      type: string
89
                    description: |-
90
                      Tags used to select a subset of proxies by tags. Can only be used with kinds
91
                      `MeshSubset` and `MeshServiceSubset`
92
                    type: object
93
                type: object
94
              to:
95
                description: To list makes a match between the consumed services and
96
                  corresponding configurations
97
                items:
98
                  properties:
99
                    default:
100
                      description: |-
101
                        Default is a configuration specific to the group of destinations referenced in
102
                        'targetRef'
103
                      properties:
104
                        alwaysLogHealthCheckFailures:
105
                          description: |-
106
                            If set to true, health check failure events will always be logged. If set
107
                            to false, only the initial health check failure event will be logged. The
108
                            default value is false.
109
                          type: boolean
110
                        eventLogPath:
111
                          description: |-
112
                            Specifies the path to the file where Envoy can log health check events.
113
                            If empty, no event log will be written.
114
                          type: string
115
                        failTrafficOnPanic:
116
                          description: |-
117
                            If set to true, Envoy will not consider any hosts when the cluster is in
118
                            'panic mode'. Instead, the cluster will fail all requests as if all hosts
119
                            are unhealthy. This can help avoid potentially overwhelming a failing
120
                            service.
121
                          type: boolean
122
                        grpc:
123
                          description: |-
124
                            GrpcHealthCheck defines gRPC configuration which will instruct the service
125
                            the health check will be made for is a gRPC service.
126
                          properties:
127
                            authority:
128
                              description: |-
129
                                The value of the :authority header in the gRPC health check request,
130
                                by default name of the cluster this health check is associated with
131
                              type: string
132
                            disabled:
133
                              description: If true the GrpcHealthCheck is disabled
134
                              type: boolean
135
                            serviceName:
136
                              description: Service name parameter which will be sent
137
                                to gRPC service
138
                              type: string
139
                          type: object
140
                        healthyPanicThreshold:
141
                          anyOf:
142
                          - type: integer
143
                          - type: string
144
                          description: |-
145
                            Allows to configure panic threshold for Envoy cluster. If not specified,
146
                            the default is 50%. To disable panic mode, set to 0%.
147
                            Either int or decimal represented as string.
148
                          x-kubernetes-int-or-string: true
149
                        healthyThreshold:
150
                          default: 1
151
                          description: Number of consecutive healthy checks before
152
                            considering a host healthy.
153
                          format: int32
154
                          type: integer
155
                        http:
156
                          description: |-
157
                            HttpHealthCheck defines HTTP configuration which will instruct the service
158
                            the health check will be made for is an HTTP service.
159
                          properties:
160
                            disabled:
161
                              description: If true the HttpHealthCheck is disabled
162
                              type: boolean
163
                            expectedStatuses:
164
                              description: List of HTTP response statuses which are
165
                                considered healthy
166
                              items:
167
                                format: int32
168
                                type: integer
169
                              type: array
170
                            path:
171
                              default: /
172
                              description: |-
173
                                The HTTP path which will be requested during the health check
174
                                (ie. /health)
175
                              type: string
176
                            requestHeadersToAdd:
177
                              description: |-
178
                                The list of HTTP headers which should be added to each health check
179
                                request
180
                              properties:
181
                                add:
182
                                  items:
183
                                    properties:
184
                                      name:
185
                                        maxLength: 256
186
                                        minLength: 1
187
                                        pattern: ^[a-z0-9!#$%&'*+\-.^_\x60|~]+$
188
                                        type: string
189
                                      value:
190
                                        type: string
191
                                    required:
192
                                    - name
193
                                    - value
194
                                    type: object
195
                                  maxItems: 16
196
                                  type: array
197
                                  x-kubernetes-list-map-keys:
198
                                  - name
199
                                  x-kubernetes-list-type: map
200
                                set:
201
                                  items:
202
                                    properties:
203
                                      name:
204
                                        maxLength: 256
205
                                        minLength: 1
206
                                        pattern: ^[a-z0-9!#$%&'*+\-.^_\x60|~]+$
207
                                        type: string
208
                                      value:
209
                                        type: string
210
                                    required:
211
                                    - name
212
                                    - value
213
                                    type: object
214
                                  maxItems: 16
215
                                  type: array
216
                                  x-kubernetes-list-map-keys:
217
                                  - name
218
                                  x-kubernetes-list-type: map
219
                              type: object
220
                          type: object
221
                        initialJitter:
222
                          description: |-
223
                            If specified, Envoy will start health checking after a random time in
224
                            ms between 0 and initialJitter. This only applies to the first health
225
                            check.
226
                          type: string
227
                        interval:
228
                          default: 1m
229
                          description: Interval between consecutive health checks.
230
                          type: string
231
                        intervalJitter:
232
                          description: |-
233
                            If specified, during every interval Envoy will add IntervalJitter to the
234
                            wait time.
235
                          type: string
236
                        intervalJitterPercent:
237
                          description: |-
238
                            If specified, during every interval Envoy will add IntervalJitter *
239
                            IntervalJitterPercent / 100 to the wait time. If IntervalJitter and
240
                            IntervalJitterPercent are both set, both of them will be used to
241
                            increase the wait time.
242
                          format: int32
243
                          type: integer
244
                        noTrafficInterval:
245
                          description: |-
246
                            The "no traffic interval" is a special health check interval that is used
247
                            when a cluster has never had traffic routed to it. This lower interval
248
                            allows cluster information to be kept up to date, without sending a
249
                            potentially large amount of active health checking traffic for no reason.
250
                            Once a cluster has been used for traffic routing, Envoy will shift back
251
                            to using the standard health check interval that is defined. Note that
252
                            this interval takes precedence over any other. The default value for "no
253
                            traffic interval" is 60 seconds.
254
                          type: string
255
                        reuseConnection:
256
                          description: Reuse health check connection between health
257
                            checks. Default is true.
258
                          type: boolean
259
                        tcp:
260
                          description: |-
261
                            TcpHealthCheck defines configuration for specifying bytes to send and
262
                            expected response during the health check
263
                          properties:
264
                            disabled:
265
                              description: If true the TcpHealthCheck is disabled
266
                              type: boolean
267
                            receive:
268
                              description: |-
269
                                List of Base64 encoded blocks of strings expected as a response. When checking the response,
270
                                "fuzzy" matching is performed such that each block must be found, and
271
                                in the order specified, but not necessarily contiguous.
272
                                If not provided or empty, checks will be performed as "connect only" and be marked as successful when TCP connection is successfully established.
273
                              items:
274
                                type: string
275
                              type: array
276
                            send:
277
                              description: Base64 encoded content of the message which
278
                                will be sent during the health check to the target
279
                              type: string
280
                          type: object
281
                        timeout:
282
                          default: 15s
283
                          description: Maximum time to wait for a health check response.
284
                          type: string
285
                        unhealthyThreshold:
286
                          default: 5
287
                          description: |-
288
                            Number of consecutive unhealthy checks before considering a host
289
                            unhealthy.
290
                          format: int32
291
                          type: integer
292
                      type: object
293
                    targetRef:
294
                      description: |-
295
                        TargetRef is a reference to the resource that represents a group of
296
                        destinations.
297
                      properties:
298
                        kind:
299
                          description: Kind of the referenced resource
300
                          enum:
301
                          - Mesh
302
                          - MeshSubset
303
                          - MeshGateway
304
                          - MeshService
305
                          - MeshServiceSubset
306
                          - MeshHTTPRoute
307
                          type: string
308
                        mesh:
309
                          description: Mesh is reserved for future use to identify
310
                            cross mesh resources.
311
                          type: string
312
                        name:
313
                          description: |-
314
                            Name of the referenced resource. Can only be used with kinds: `MeshService`,
315
                            `MeshServiceSubset` and `MeshGatewayRoute`
316
                          type: string
317
                        proxyTypes:
318
                          description: |-
319
                            ProxyTypes specifies the data plane types that are subject to the policy. When not specified,
320
                            all data plane types are targeted by the policy.
321
                          items:
322
                            enum:
323
                            - Sidecar
324
                            - Gateway
325
                            type: string
326
                          minItems: 1
327
                          type: array
328
                        tags:
329
                          additionalProperties:
330
                            type: string
331
                          description: |-
332
                            Tags used to select a subset of proxies by tags. Can only be used with kinds
333
                            `MeshSubset` and `MeshServiceSubset`
334
                          type: object
335
                      type: object
336
                  required:
337
                  - targetRef
338
                  type: object
339
                type: array
340
            required:
341
            - targetRef
342
            type: object
343
        type: object
344
    served: true
345
    storage: true
346
    subresources: {}
347

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

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

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

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