...
1apiVersion: apiextensions.k8s.io/v1
2kind: CustomResourceDefinition
3metadata:
4 annotations:
5 cnrm.cloud.google.com/version: 0.0.0-dev
6 creationTimestamp: null
7 labels:
8 cnrm.cloud.google.com/dcl2crd: "true"
9 cnrm.cloud.google.com/managed-by-kcc: "true"
10 cnrm.cloud.google.com/stability-level: stable
11 cnrm.cloud.google.com/system: "true"
12 name: computepacketmirrorings.compute.cnrm.cloud.google.com
13spec:
14 group: compute.cnrm.cloud.google.com
15 names:
16 categories:
17 - gcp
18 kind: ComputePacketMirroring
19 plural: computepacketmirrorings
20 shortNames:
21 - gcpcomputepacketmirroring
22 - gcpcomputepacketmirrorings
23 singular: computepacketmirroring
24 preserveUnknownFields: false
25 scope: Namespaced
26 versions:
27 - additionalPrinterColumns:
28 - jsonPath: .metadata.creationTimestamp
29 name: Age
30 type: date
31 - description: When 'True', the most recent reconcile of the resource succeeded
32 jsonPath: .status.conditions[?(@.type=='Ready')].status
33 name: Ready
34 type: string
35 - description: The reason for the value in 'Ready'
36 jsonPath: .status.conditions[?(@.type=='Ready')].reason
37 name: Status
38 type: string
39 - description: The last transition time for the value in 'Status'
40 jsonPath: .status.conditions[?(@.type=='Ready')].lastTransitionTime
41 name: Status Age
42 type: date
43 name: v1beta1
44 schema:
45 openAPIV3Schema:
46 properties:
47 apiVersion:
48 description: 'apiVersion defines the versioned schema of this representation
49 of an object. Servers should convert recognized schemas to the latest
50 internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources'
51 type: string
52 kind:
53 description: 'kind is a string value representing the REST resource this
54 object represents. Servers may infer this from the endpoint the client
55 submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds'
56 type: string
57 metadata:
58 type: object
59 spec:
60 properties:
61 collectorIlb:
62 description: The Forwarding Rule resource of type `loadBalancingScheme=INTERNAL`
63 that will be used as collector for mirrored traffic. The specified
64 forwarding rule must have `isMirroringCollector` set to true.
65 properties:
66 urlRef:
67 oneOf:
68 - not:
69 required:
70 - external
71 required:
72 - name
73 - not:
74 anyOf:
75 - required:
76 - name
77 - required:
78 - namespace
79 required:
80 - external
81 properties:
82 external:
83 description: |-
84 Resource URL to the forwarding rule representing the ILB configured as destination of the mirrored traffic.
85
86 Allowed value: The `selfLink` field of a `ComputeForwardingRule` resource.
87 type: string
88 name:
89 description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names'
90 type: string
91 namespace:
92 description: 'Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/'
93 type: string
94 type: object
95 required:
96 - urlRef
97 type: object
98 description:
99 description: An optional description of this resource. Provide this
100 property when you create the resource.
101 type: string
102 enable:
103 description: Indicates whether or not this packet mirroring takes
104 effect. If set to FALSE, this packet mirroring policy will not be
105 enforced on the network. The default is TRUE.
106 type: string
107 filter:
108 description: Filter for mirrored traffic. If unspecified, all traffic
109 is mirrored.
110 properties:
111 cidrRanges:
112 description: IP CIDR ranges that apply as filter on the source
113 (ingress) or destination (egress) IP in the IP header. Only
114 IPv4 is supported. If no ranges are specified, all traffic that
115 matches the specified IPProtocols is mirrored. If neither cidrRanges
116 nor IPProtocols is specified, all traffic is mirrored.
117 items:
118 type: string
119 type: array
120 direction:
121 description: Direction of traffic to mirror, either INGRESS, EGRESS,
122 or BOTH. The default is BOTH.
123 type: string
124 ipProtocols:
125 description: Protocols that apply as filter on mirrored traffic.
126 If no protocols are specified, all traffic that matches the
127 specified CIDR ranges is mirrored. If neither cidrRanges nor
128 IPProtocols is specified, all traffic is mirrored.
129 items:
130 type: string
131 type: array
132 type: object
133 location:
134 description: Immutable. The location for the resource
135 type: string
136 mirroredResources:
137 description: PacketMirroring mirroredResourceInfos. MirroredResourceInfo
138 specifies a set of mirrored VM instances, subnetworks and/or tags
139 for which traffic from/to all VM instances will be mirrored.
140 properties:
141 instances:
142 description: A set of virtual machine instances that are being
143 mirrored. They must live in zones contained in the same region
144 as this packetMirroring. Note that this config will apply only
145 to those network interfaces of the Instances that belong to
146 the network specified in this packetMirroring. You may specify
147 a maximum of 50 Instances.
148 items:
149 properties:
150 canonicalUrl:
151 description: Immutable. Output only. Unique identifier for
152 the instance; defined by the server.
153 type: string
154 urlRef:
155 oneOf:
156 - not:
157 required:
158 - external
159 required:
160 - name
161 - not:
162 anyOf:
163 - required:
164 - name
165 - required:
166 - namespace
167 required:
168 - external
169 properties:
170 external:
171 description: |-
172 Resource URL to the virtual machine instance which is being mirrored.
173
174 Allowed value: The `selfLink` field of a `ComputeInstance` resource.
175 type: string
176 name:
177 description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names'
178 type: string
179 namespace:
180 description: 'Namespace of the referent. More info:
181 https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/'
182 type: string
183 type: object
184 type: object
185 type: array
186 subnetworks:
187 description: Immutable. A set of subnetworks for which traffic
188 from/to all VM instances will be mirrored. They must live in
189 the same region as this packetMirroring. You may specify a maximum
190 of 5 subnetworks.
191 items:
192 properties:
193 canonicalUrl:
194 description: Immutable. Output only. Unique identifier for
195 the subnetwork; defined by the server.
196 type: string
197 urlRef:
198 description: Immutable.
199 oneOf:
200 - not:
201 required:
202 - external
203 required:
204 - name
205 - not:
206 anyOf:
207 - required:
208 - name
209 - required:
210 - namespace
211 required:
212 - external
213 properties:
214 external:
215 description: |-
216 Resource URL to the subnetwork for which traffic from/to all VM instances will be mirrored.
217
218 Allowed value: The `selfLink` field of a `ComputeSubnetwork` resource.
219 type: string
220 name:
221 description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names'
222 type: string
223 namespace:
224 description: 'Namespace of the referent. More info:
225 https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/'
226 type: string
227 type: object
228 type: object
229 type: array
230 tags:
231 description: A set of mirrored tags. Traffic from/to all VM instances
232 that have one or more of these tags will be mirrored.
233 items:
234 type: string
235 type: array
236 type: object
237 network:
238 description: Immutable. Specifies the mirrored VPC network. Only packets
239 in this network will be mirrored. All mirrored VMs should have a
240 NIC in the given network. All mirrored subnetworks should belong
241 to the given network.
242 properties:
243 urlRef:
244 description: Immutable.
245 oneOf:
246 - not:
247 required:
248 - external
249 required:
250 - name
251 - not:
252 anyOf:
253 - required:
254 - name
255 - required:
256 - namespace
257 required:
258 - external
259 properties:
260 external:
261 description: |-
262 URL of the network resource.
263
264 Allowed value: The `selfLink` field of a `ComputeNetwork` resource.
265 type: string
266 name:
267 description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names'
268 type: string
269 namespace:
270 description: 'Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/'
271 type: string
272 type: object
273 required:
274 - urlRef
275 type: object
276 priority:
277 description: The priority of applying this configuration. Priority
278 is used to break ties in cases where there is more than one matching
279 rule. In the case of two rules that apply for a given Instance,
280 the one with the lowest-numbered priority value wins. Default value
281 is 1000. Valid range is 0 through 65535.
282 format: int64
283 type: integer
284 projectRef:
285 description: Immutable. The Project that this resource belongs to.
286 oneOf:
287 - not:
288 required:
289 - external
290 required:
291 - name
292 - not:
293 anyOf:
294 - required:
295 - name
296 - required:
297 - namespace
298 required:
299 - external
300 properties:
301 external:
302 description: |-
303 The project for the resource
304
305 Allowed value: The Google Cloud resource name of a `Project` resource (format: `projects/{{name}}`).
306 type: string
307 name:
308 description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names'
309 type: string
310 namespace:
311 description: 'Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/'
312 type: string
313 type: object
314 resourceID:
315 description: Immutable. Optional. The name of the resource. Used for
316 creation and acquisition. When unset, the value of `metadata.name`
317 is used as the default.
318 type: string
319 required:
320 - collectorIlb
321 - location
322 - mirroredResources
323 - network
324 - projectRef
325 type: object
326 status:
327 properties:
328 collectorIlb:
329 properties:
330 canonicalUrl:
331 description: Output only. Unique identifier for the forwarding
332 rule; defined by the server.
333 type: string
334 type: object
335 conditions:
336 description: Conditions represent the latest available observation
337 of the resource's current state.
338 items:
339 properties:
340 lastTransitionTime:
341 description: Last time the condition transitioned from one status
342 to another.
343 type: string
344 message:
345 description: Human-readable message indicating details about
346 last transition.
347 type: string
348 reason:
349 description: Unique, one-word, CamelCase reason for the condition's
350 last transition.
351 type: string
352 status:
353 description: Status is the status of the condition. Can be True,
354 False, Unknown.
355 type: string
356 type:
357 description: Type is the type of the condition.
358 type: string
359 type: object
360 type: array
361 id:
362 description: Output only. The unique identifier for the resource.
363 This identifier is defined by the server.
364 format: int64
365 type: integer
366 network:
367 properties:
368 canonicalUrl:
369 description: Output only. Unique identifier for the network; defined
370 by the server.
371 type: string
372 type: object
373 observedGeneration:
374 description: ObservedGeneration is the generation of the resource
375 that was most recently observed by the Config Connector controller.
376 If this is equal to metadata.generation, then that means that the
377 current reported status reflects the most recent desired state of
378 the resource.
379 type: integer
380 region:
381 description: URI of the region where the packetMirroring resides.
382 type: string
383 selfLink:
384 description: Server-defined URL for the resource.
385 type: string
386 type: object
387 required:
388 - spec
389 type: object
390 served: true
391 storage: true
392 subresources:
393 status: {}
394status:
395 acceptedNames:
396 kind: ""
397 plural: ""
398 conditions: []
399 storedVersions: []
View as plain text