...
1---
2apiVersion: apiextensions.k8s.io/v1
3kind: CustomResourceDefinition
4metadata:
5 annotations:
6 controller-gen.kubebuilder.io/version: (unknown)
7 name: computenodegroups.compute.cnrm.cloud.google.com
8spec:
9 group: compute.cnrm.cloud.google.com
10 names:
11 kind: ComputeNodeGroup
12 listKind: ComputeNodeGroupList
13 plural: computenodegroups
14 singular: computenodegroup
15 scope: Namespaced
16 versions:
17 - name: v1beta1
18 schema:
19 openAPIV3Schema:
20 description: ComputeNodeGroup 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 autoscalingPolicy:
42 description: |-
43 Immutable. If you use sole-tenant nodes for your workloads, you can use the node
44 group autoscaler to automatically manage the sizes of your node groups.
45 properties:
46 maxNodes:
47 description: |-
48 Immutable. Maximum size of the node group. Set to a value less than or equal
49 to 100 and greater than or equal to min-nodes.
50 type: integer
51 minNodes:
52 description: |-
53 Immutable. Minimum size of the node group. Must be less
54 than or equal to max-nodes. The default value is 0.
55 type: integer
56 mode:
57 description: |-
58 Immutable. The autoscaling mode. Set to one of the following:
59 - OFF: Disables the autoscaler.
60 - ON: Enables scaling in and scaling out.
61 - ONLY_SCALE_OUT: Enables only scaling out.
62 You must use this mode if your node groups are configured to
63 restart their hosted VMs on minimal servers. Possible values: ["OFF", "ON", "ONLY_SCALE_OUT"].
64 type: string
65 type: object
66 description:
67 description: Immutable. An optional textual description of the resource.
68 type: string
69 initialSize:
70 description: Immutable. The initial number of nodes in the node group.
71 One of 'initial_size' or 'size' must be specified.
72 type: integer
73 maintenancePolicy:
74 description: 'Immutable. Specifies how to handle instances when a
75 node in the group undergoes maintenance. Set to one of: DEFAULT,
76 RESTART_IN_PLACE, or MIGRATE_WITHIN_NODE_GROUP. The default value
77 is DEFAULT.'
78 type: string
79 maintenanceWindow:
80 description: Immutable. contains properties for the timeframe of maintenance.
81 properties:
82 startTime:
83 description: Immutable. instances.start time of the window. This
84 must be in UTC format that resolves to one of 00:00, 04:00,
85 08:00, 12:00, 16:00, or 20:00. For example, both 13:00-5 and
86 08:00 are valid.
87 type: string
88 required:
89 - startTime
90 type: object
91 nodeTemplateRef:
92 description: The node template to which this node group belongs.
93 properties:
94 external:
95 description: The external name of the referenced resource
96 type: string
97 kind:
98 description: Kind of the referent.
99 type: string
100 name:
101 description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names'
102 type: string
103 namespace:
104 description: 'Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/'
105 type: string
106 type: object
107 resourceID:
108 description: Immutable. Optional. The name of the resource. Used for
109 creation and acquisition. When unset, the value of `metadata.name`
110 is used as the default.
111 type: string
112 shareSettings:
113 description: Immutable. Share settings for the node group.
114 properties:
115 projectMap:
116 description: Immutable. A map of project id and project config.
117 This is only valid when shareType's value is SPECIFIC_PROJECTS.
118 items:
119 properties:
120 idRef:
121 description: The key of this project config in the parent
122 map.
123 properties:
124 external:
125 description: The external name of the referenced resource
126 type: string
127 kind:
128 description: Kind of the referent.
129 type: string
130 name:
131 description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names'
132 type: string
133 namespace:
134 description: 'Namespace of the referent. More info:
135 https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/'
136 type: string
137 type: object
138 projectIdRef:
139 description: |-
140 The project id/number should be the same as the key of this project
141 config in the project map.
142 properties:
143 external:
144 description: The external name of the referenced resource
145 type: string
146 kind:
147 description: Kind of the referent.
148 type: string
149 name:
150 description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names'
151 type: string
152 namespace:
153 description: 'Namespace of the referent. More info:
154 https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/'
155 type: string
156 type: object
157 required:
158 - idRef
159 - projectIdRef
160 type: object
161 type: array
162 shareType:
163 description: 'Immutable. Node group sharing type. Possible values:
164 ["ORGANIZATION", "SPECIFIC_PROJECTS", "LOCAL"].'
165 type: string
166 required:
167 - shareType
168 type: object
169 size:
170 description: Immutable. The total number of nodes in the node group.
171 One of 'initial_size' or 'size' must be specified.
172 type: integer
173 zone:
174 description: Immutable. Zone where this node group is located.
175 type: string
176 required:
177 - nodeTemplateRef
178 - zone
179 type: object
180 status:
181 properties:
182 conditions:
183 description: |-
184 Conditions represent the latest available observations of the
185 ComputeNodeGroup's current state.
186 items:
187 properties:
188 lastTransitionTime:
189 description: Last time the condition transitioned from one status
190 to another.
191 type: string
192 message:
193 description: Human-readable message indicating details about
194 last transition.
195 type: string
196 reason:
197 description: |-
198 Unique, one-word, CamelCase reason for the condition's last
199 transition.
200 type: string
201 status:
202 description: Status is the status of the condition. Can be True,
203 False, Unknown.
204 type: string
205 type:
206 description: Type is the type of the condition.
207 type: string
208 type: object
209 type: array
210 creationTimestamp:
211 description: Creation timestamp in RFC3339 text format.
212 type: string
213 observedGeneration:
214 description: ObservedGeneration is the generation of the resource
215 that was most recently observed by the Config Connector controller.
216 If this is equal to metadata.generation, then that means that the
217 current reported status reflects the most recent desired state of
218 the resource.
219 type: integer
220 selfLink:
221 type: string
222 type: object
223 type: object
224 served: true
225 storage: true
View as plain text