kuma

Форк
0
/
kuma.io_meshtraces.yaml 
266 строк · 12.2 Кб
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: meshtraces.kuma.io
8
spec:
9
  group: kuma.io
10
  names:
11
    categories:
12
    - kuma
13
    kind: MeshTrace
14
    listKind: MeshTraceList
15
    plural: meshtraces
16
    singular: meshtrace
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 MeshTrace resource.
49
            properties:
50
              default:
51
                description: MeshTrace configuration.
52
                properties:
53
                  backends:
54
                    description: |-
55
                      A one element array of backend definition.
56
                      Envoy allows configuring only 1 backend, so the natural way of
57
                      representing that would be just one object. Unfortunately due to the
58
                      reasons explained in MADR 009-tracing-policy this has to be a one element
59
                      array for now.
60
                    items:
61
                      description: Only one of zipkin, datadog or openTelemetry can
62
                        be used.
63
                      properties:
64
                        datadog:
65
                          description: Datadog backend configuration.
66
                          properties:
67
                            splitService:
68
                              default: false
69
                              description: |-
70
                                Determines if datadog service name should be split based on traffic
71
                                direction and destination. For example, with `splitService: true` and a
72
                                `backend` service that communicates with a couple of databases, you would
73
                                get service names like `backend_INBOUND`, `backend_OUTBOUND_db1`, and
74
                                `backend_OUTBOUND_db2` in Datadog.
75
                              type: boolean
76
                            url:
77
                              description: |-
78
                                Address of Datadog collector, only host and port are allowed (no paths,
79
                                fragments etc.)
80
                              type: string
81
                          required:
82
                          - url
83
                          type: object
84
                        openTelemetry:
85
                          description: OpenTelemetry backend configuration.
86
                          properties:
87
                            endpoint:
88
                              description: Address of OpenTelemetry collector.
89
                              example: otel-collector:4317
90
                              minLength: 1
91
                              type: string
92
                          required:
93
                          - endpoint
94
                          type: object
95
                        type:
96
                          enum:
97
                          - Zipkin
98
                          - Datadog
99
                          - OpenTelemetry
100
                          type: string
101
                        zipkin:
102
                          description: Zipkin backend configuration.
103
                          properties:
104
                            apiVersion:
105
                              default: httpJson
106
                              description: |-
107
                                Version of the API.
108
                                https://github.com/envoyproxy/envoy/blob/v1.22.0/api/envoy/config/trace/v3/zipkin.proto#L66
109
                              enum:
110
                              - httpJson
111
                              - httpProto
112
                              type: string
113
                            sharedSpanContext:
114
                              default: true
115
                              description: |-
116
                                Determines whether client and server spans will share the same span
117
                                context.
118
                                https://github.com/envoyproxy/envoy/blob/v1.22.0/api/envoy/config/trace/v3/zipkin.proto#L63
119
                              type: boolean
120
                            traceId128bit:
121
                              default: false
122
                              description: Generate 128bit traces.
123
                              type: boolean
124
                            url:
125
                              description: Address of Zipkin collector.
126
                              type: string
127
                          required:
128
                          - url
129
                          type: object
130
                      required:
131
                      - type
132
                      type: object
133
                    maxItems: 1
134
                    type: array
135
                  sampling:
136
                    description: |-
137
                      Sampling configuration.
138
                      Sampling is the process by which a decision is made on whether to
139
                      process/export a span or not.
140
                    properties:
141
                      client:
142
                        anyOf:
143
                        - type: integer
144
                        - type: string
145
                        default: 100%
146
                        description: |-
147
                          Target percentage of requests that will be force traced if the
148
                          'x-client-trace-id' header is set. Mirror of client_sampling in Envoy
149
                          https://github.com/envoyproxy/envoy/blob/v1.22.0/api/envoy/config/filter/network/http_connection_manager/v2/http_connection_manager.proto#L127-L133
150
                          Either int or decimal represented as string.
151
                        x-kubernetes-int-or-string: true
152
                      overall:
153
                        anyOf:
154
                        - type: integer
155
                        - type: string
156
                        default: 100%
157
                        description: |-
158
                          Target percentage of requests will be traced
159
                          after all other sampling checks have been applied (client, force tracing,
160
                          random sampling). This field functions as an upper limit on the total
161
                          configured sampling rate. For instance, setting client_sampling to 100%
162
                          but overall_sampling to 1% will result in only 1% of client requests with
163
                          the appropriate headers to be force traced. Mirror of
164
                          overall_sampling in Envoy
165
                          https://github.com/envoyproxy/envoy/blob/v1.22.0/api/envoy/config/filter/network/http_connection_manager/v2/http_connection_manager.proto#L142-L150
166
                          Either int or decimal represented as string.
167
                        x-kubernetes-int-or-string: true
168
                      random:
169
                        anyOf:
170
                        - type: integer
171
                        - type: string
172
                        default: 100%
173
                        description: |-
174
                          Target percentage of requests that will be randomly selected for trace
175
                          generation, if not requested by the client or not forced.
176
                          Mirror of random_sampling in Envoy
177
                          https://github.com/envoyproxy/envoy/blob/v1.22.0/api/envoy/config/filter/network/http_connection_manager/v2/http_connection_manager.proto#L135-L140
178
                          Either int or decimal represented as string.
179
                        x-kubernetes-int-or-string: true
180
                    type: object
181
                  tags:
182
                    description: |-
183
                      Custom tags configuration. You can add custom tags to traces based on
184
                      headers or literal values.
185
                    items:
186
                      description: |-
187
                        Custom tags configuration.
188
                        Only one of literal or header can be used.
189
                      properties:
190
                        header:
191
                          description: Tag taken from a header.
192
                          properties:
193
                            default:
194
                              description: |-
195
                                Default value to use if header is missing.
196
                                If the default is missing and there is no value the tag will not be
197
                                included.
198
                              type: string
199
                            name:
200
                              description: Name of the header.
201
                              type: string
202
                          required:
203
                          - name
204
                          type: object
205
                        literal:
206
                          description: Tag taken from literal value.
207
                          type: string
208
                        name:
209
                          description: Name of the tag.
210
                          type: string
211
                      required:
212
                      - name
213
                      type: object
214
                    type: array
215
                type: object
216
              targetRef:
217
                description: |-
218
                  TargetRef is a reference to the resource the policy takes an effect on.
219
                  The resource could be either a real store object or virtual resource
220
                  defined inplace.
221
                properties:
222
                  kind:
223
                    description: Kind of the referenced resource
224
                    enum:
225
                    - Mesh
226
                    - MeshSubset
227
                    - MeshGateway
228
                    - MeshService
229
                    - MeshServiceSubset
230
                    - MeshHTTPRoute
231
                    type: string
232
                  mesh:
233
                    description: Mesh is reserved for future use to identify cross
234
                      mesh resources.
235
                    type: string
236
                  name:
237
                    description: |-
238
                      Name of the referenced resource. Can only be used with kinds: `MeshService`,
239
                      `MeshServiceSubset` and `MeshGatewayRoute`
240
                    type: string
241
                  proxyTypes:
242
                    description: |-
243
                      ProxyTypes specifies the data plane types that are subject to the policy. When not specified,
244
                      all data plane types are targeted by the policy.
245
                    items:
246
                      enum:
247
                      - Sidecar
248
                      - Gateway
249
                      type: string
250
                    minItems: 1
251
                    type: array
252
                  tags:
253
                    additionalProperties:
254
                      type: string
255
                    description: |-
256
                      Tags used to select a subset of proxies by tags. Can only be used with kinds
257
                      `MeshSubset` and `MeshServiceSubset`
258
                    type: object
259
                type: object
260
            required:
261
            - targetRef
262
            type: object
263
        type: object
264
    served: true
265
    storage: true
266
    subresources: {}
267

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

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

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

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