...
1---
2apiVersion: apiextensions.k8s.io/v1
3kind: CustomResourceDefinition
4metadata:
5 annotations:
6 controller-gen.kubebuilder.io/version: (unknown)
7 name: computereservations.compute.cnrm.cloud.google.com
8spec:
9 group: compute.cnrm.cloud.google.com
10 names:
11 kind: ComputeReservation
12 listKind: ComputeReservationList
13 plural: computereservations
14 singular: computereservation
15 scope: Namespaced
16 versions:
17 - name: v1beta1
18 schema:
19 openAPIV3Schema:
20 description: ComputeReservation is the Schema for the compute API
21 properties:
22 apiVersion:
23 description: |-
24 APIVersion defines the versioned schema of this representation of an object.
25 Servers should convert recognized schemas to the latest internal value, and
26 may reject unrecognized values.
27 More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
28 type: string
29 kind:
30 description: |-
31 Kind is a string value representing the REST resource this object represents.
32 Servers may infer this from the endpoint the client submits requests to.
33 Cannot be updated.
34 In CamelCase.
35 More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
36 type: string
37 metadata:
38 type: object
39 spec:
40 properties:
41 description:
42 description: Immutable. An optional description of this resource.
43 type: string
44 resourceID:
45 description: Immutable. Optional. The name of the resource. Used for
46 creation and acquisition. When unset, the value of `metadata.name`
47 is used as the default.
48 type: string
49 specificReservation:
50 description: Reservation for instances with specific machine shapes.
51 properties:
52 count:
53 description: The number of resources that are allocated.
54 type: integer
55 inUseCount:
56 description: How many instances are in use.
57 type: integer
58 instanceProperties:
59 description: Immutable. The instance properties for the reservation.
60 properties:
61 guestAccelerators:
62 description: Immutable. Guest accelerator type and count.
63 items:
64 properties:
65 acceleratorCount:
66 description: |-
67 Immutable. The number of the guest accelerator cards exposed to
68 this instance.
69 type: integer
70 acceleratorType:
71 description: |-
72 Immutable. The full or partial URL of the accelerator type to
73 attach to this instance. For example:
74 'projects/my-project/zones/us-central1-c/acceleratorTypes/nvidia-tesla-p100'
75
76
77 If you are creating an instance template, specify only the accelerator name.
78 type: string
79 required:
80 - acceleratorCount
81 - acceleratorType
82 type: object
83 type: array
84 localSsds:
85 description: |-
86 Immutable. The amount of local ssd to reserve with each instance. This
87 reserves disks of type 'local-ssd'.
88 items:
89 properties:
90 diskSizeGb:
91 description: Immutable. The size of the disk in base-2
92 GB.
93 type: integer
94 interface:
95 description: 'Immutable. The disk interface to use for
96 attaching this disk. Default value: "SCSI" Possible
97 values: ["SCSI", "NVME"].'
98 type: string
99 required:
100 - diskSizeGb
101 type: object
102 type: array
103 machineType:
104 description: Immutable. The name of the machine type to reserve.
105 type: string
106 minCpuPlatform:
107 description: |-
108 Immutable. The minimum CPU platform for the reservation. For example,
109 '"Intel Skylake"'. See
110 the CPU platform availability reference](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform#availablezones)
111 for information on available CPU platforms.
112 type: string
113 required:
114 - machineType
115 type: object
116 required:
117 - count
118 - instanceProperties
119 type: object
120 specificReservationRequired:
121 description: |-
122 Immutable. When set to true, only VMs that target this reservation by name can
123 consume this reservation. Otherwise, it can be consumed by VMs with
124 affinity for any reservation. Defaults to false.
125 type: boolean
126 zone:
127 description: Immutable. The zone where the reservation is made.
128 type: string
129 required:
130 - specificReservation
131 - zone
132 type: object
133 status:
134 properties:
135 commitment:
136 description: |-
137 Full or partial URL to a parent commitment. This field displays for
138 reservations that are tied to a commitment.
139 type: string
140 conditions:
141 description: |-
142 Conditions represent the latest available observations of the
143 ComputeReservation's current state.
144 items:
145 properties:
146 lastTransitionTime:
147 description: Last time the condition transitioned from one status
148 to another.
149 type: string
150 message:
151 description: Human-readable message indicating details about
152 last transition.
153 type: string
154 reason:
155 description: |-
156 Unique, one-word, CamelCase reason for the condition's last
157 transition.
158 type: string
159 status:
160 description: Status is the status of the condition. Can be True,
161 False, Unknown.
162 type: string
163 type:
164 description: Type is the type of the condition.
165 type: string
166 type: object
167 type: array
168 creationTimestamp:
169 description: Creation timestamp in RFC3339 text format.
170 type: string
171 observedGeneration:
172 description: ObservedGeneration is the generation of the resource
173 that was most recently observed by the Config Connector controller.
174 If this is equal to metadata.generation, then that means that the
175 current reported status reflects the most recent desired state of
176 the resource.
177 type: integer
178 selfLink:
179 type: string
180 status:
181 description: The status of the reservation.
182 type: string
183 type: object
184 type: object
185 served: true
186 storage: true
View as plain text