-
Notifications
You must be signed in to change notification settings - Fork 231
Expand file tree
/
Copy pathinfrastructure.cluster.x-k8s.io_gcpmachinetemplates.yaml
More file actions
506 lines (506 loc) · 31.1 KB
/
infrastructure.cluster.x-k8s.io_gcpmachinetemplates.yaml
File metadata and controls
506 lines (506 loc) · 31.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.17.3
name: gcpmachinetemplates.infrastructure.cluster.x-k8s.io
spec:
group: infrastructure.cluster.x-k8s.io
names:
categories:
- cluster-api
kind: GCPMachineTemplate
listKind: GCPMachineTemplateList
plural: gcpmachinetemplates
singular: gcpmachinetemplate
scope: Namespaced
versions:
- name: v1beta1
schema:
openAPIV3Schema:
description: GCPMachineTemplate is the Schema for the gcpmachinetemplates
API.
properties:
apiVersion:
description: |-
APIVersion defines the versioned schema of this representation of an object.
Servers should convert recognized schemas to the latest internal value, and
may reject unrecognized values.
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
type: string
kind:
description: |-
Kind is a string value representing the REST resource this object represents.
Servers may infer this from the endpoint the client submits requests to.
Cannot be updated.
In CamelCase.
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
type: string
metadata:
type: object
spec:
description: GCPMachineTemplateSpec defines the desired state of GCPMachineTemplate.
properties:
template:
description: GCPMachineTemplateResource describes the data needed
to create am GCPMachine from a template.
properties:
metadata:
description: |-
Standard object's metadata.
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
properties:
annotations:
additionalProperties:
type: string
description: |-
annotations is an unstructured key value map stored with a resource that may be
set by external tools to store and retrieve arbitrary metadata. They are not
queryable and should be preserved when modifying objects.
More info: http://kubernetes.io/docs/user-guide/annotations
type: object
labels:
additionalProperties:
type: string
description: |-
labels is a map of string keys and values that can be used to organize and categorize
(scope and select) objects. May match selectors of replication controllers
and services.
More info: http://kubernetes.io/docs/user-guide/labels
type: object
type: object
spec:
description: Spec is the specification of the desired behavior
of the machine.
properties:
additionalDisks:
description: AdditionalDisks are optional non-boot attached
disks.
items:
description: AttachedDiskSpec degined GCP machine disk.
properties:
deviceType:
description: |-
DeviceType is a device type of the attached disk.
Supported types of non-root attached volumes:
1. "pd-standard" - Standard (HDD) persistent disk
2. "pd-ssd" - SSD persistent disk
3. "local-ssd" - Local SSD disk (https://cloud.google.com/compute/docs/disks/local-ssd).
4. "pd-balanced" - Balanced Persistent Disk
5. "hyperdisk-balanced" - Hyperdisk Balanced
Default is "pd-standard".
type: string
encryptionKey:
description: EncryptionKey defines the KMS key to be
used to encrypt the disk.
properties:
keyType:
description: |-
KeyType is the type of encryption key. Must be either Managed, aka Customer-Managed Encryption Key (CMEK) or
Supplied, aka Customer-Supplied EncryptionKey (CSEK).
enum:
- Managed
- Supplied
type: string
kmsKeyServiceAccount:
description: |-
KMSKeyServiceAccount is the service account being used for the encryption request for the given KMS key.
If absent, the Compute Engine default service account is used. For example:
"kmsKeyServiceAccount": "name@project_id.iam.gserviceaccount.com.
The maximum length is based on the Service Account ID (max 30), Project (max 30), and a valid gcloud email
suffix ("iam.gserviceaccount.com").
maxLength: 85
pattern: '[-_[A-Za-z0-9]+@[-_[A-Za-z0-9]+.iam.gserviceaccount.com'
type: string
managedKey:
description: ManagedKey references keys managed
by the Cloud Key Management Service. This should
be set when KeyType is Managed.
properties:
kmsKeyName:
description: |-
KMSKeyName is the name of the encryption key that is stored in Google Cloud KMS. For example:
"kmsKeyName": "projects/kms_project_id/locations/region/keyRings/key_region/cryptoKeys/key
maxLength: 160
pattern: projects\/[-_[A-Za-z0-9]+\/locations\/[-_[A-Za-z0-9]+\/keyRings\/[-_[A-Za-z0-9]+\/cryptoKeys\/[-_[A-Za-z0-9]+
type: string
required:
- kmsKeyName
type: object
suppliedKey:
description: SuppliedKey provides the key used to
create or manage a disk. This should be set when
KeyType is Managed.
maxProperties: 1
minProperties: 1
properties:
rawKey:
description: |-
RawKey specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648
base64 to either encrypt or decrypt this resource. You can provide either the rawKey or the rsaEncryptedKey.
For example: "rawKey": "SGVsbG8gZnJvbSBHb29nbGUgQ2xvdWQgUGxhdGZvcm0="
format: byte
type: string
rsaEncryptedKey:
description: |-
RSAEncryptedKey specifies an RFC 4648 base64 encoded, RSA-wrapped 2048-bit customer-supplied encryption
key to either encrypt or decrypt this resource. You can provide either the rawKey or the
rsaEncryptedKey.
For example: "rsaEncryptedKey": "ieCx/NcW06PcT7Ep1X6LUTc/hLvUDYyzSZPPVCVPTVEohpeHASqC8uw5TzyO9U+Fka9JFHi
z0mBibXUInrC/jEk014kCK/NPjYgEMOyssZ4ZINPKxlUh2zn1bV+MCaTICrdmuSBTWlUUiFoDi
D6PYznLwh8ZNdaheCeZ8ewEXgFQ8V+sDroLaN3Xs3MDTXQEMMoNUXMCZEIpg9Vtp9x2oe=="
The key must meet the following requirements before you can provide it to Compute Engine:
1. The key is wrapped using a RSA public key certificate provided by Google.
2. After being wrapped, the key must be encoded in RFC 4648 base64 encoding.
Gets the RSA public key certificate provided by Google at: https://cloud-certs.storage.googleapis.com/google-cloud-csek-ingress.pem
format: byte
type: string
type: object
required:
- keyType
type: object
size:
description: |-
Size is the size of the disk in GBs.
Defaults to 30GB. For "local-ssd" size is always 375GB.
format: int64
type: integer
type: object
type: array
additionalLabels:
additionalProperties:
type: string
description: |-
AdditionalLabels is an optional set of tags to add to an instance, in addition to the ones added by default by the
GCP provider. If both the GCPCluster and the GCPMachine specify the same tag name with different values, the
GCPMachine's value takes precedence.
type: object
additionalMetadata:
description: |-
AdditionalMetadata is an optional set of metadata to add to an instance, in addition to the ones added by default by the
GCP provider.
items:
description: MetadataItem defines a single piece of metadata
associated with an instance.
properties:
key:
description: Key is the identifier for the metadata
entry.
type: string
value:
description: Value is the value of the metadata entry.
type: string
required:
- key
type: object
type: array
x-kubernetes-list-map-keys:
- key
x-kubernetes-list-type: map
additionalNetworkTags:
description: |-
AdditionalNetworkTags is a list of network tags that should be applied to the
instance. These tags are set in addition to any network tags defined
at the cluster level or in the actuator.
items:
type: string
type: array
confidentialCompute:
description: |-
ConfidentialCompute Defines whether the instance should have confidential compute enabled or not, and the confidential computing technology of choice.
If Disabled, the machine will not be configured to be a confidential computing instance.
If Enabled, confidential computing will be configured and AMD Secure Encrypted Virtualization will be configured by default. That is subject to change over time. If using AMD Secure Encrypted Virtualization is vital, use AMDEncryptedVirtualization explicitly instead.
If AMDEncryptedVirtualization, it will configure AMD Secure Encrypted Virtualization (AMD SEV) as the confidential computing technology.
If AMDEncryptedVirtualizationNestedPaging, it will configure AMD Secure Encrypted Virtualization Secure Nested Paging (AMD SEV-SNP) as the confidential computing technology.
If IntelTrustedDomainExtensions, it will configure Intel TDX as the confidential computing technology.
If enabled (any value other than Disabled) OnHostMaintenance is required to be set to "Terminate".
If omitted, the platform chooses a default, which is subject to change over time, currently that default is false.
enum:
- Enabled
- Disabled
- AMDEncryptedVirtualization
- AMDEncryptedVirtualizationNestedPaging
- IntelTrustedDomainExtensions
type: string
enableNestedVirtualization:
description: |-
EnableNestedVirtualization specifies whether to enable nested virtualization or not
(default is false). Nested virtualization allows VMs to run inside other VMs.
Note: Requires at minimum "Intel Haswell" CPU platform.
This field cannot be changed after instance creation.
type: boolean
guestAccelerators:
description: |-
GuestAccelerators is a list of the type and count of accelerator cards
attached to the instance.
items:
description: |-
Accelerator is a specification of the type and number of accelerator
cards attached to the instance.
properties:
count:
description: |-
Count is the number of the guest accelerator cards exposed to this
instance.
format: int64
type: integer
type:
description: |-
Type is the full or partial URL of the accelerator type resource to
attach to this instance. For example:
projects/my-project/zones/us-central1-c/acceleratorTypes/nvidia-tesla-p100
If you are creating an instance template, specify only the accelerator name.
See GPUs on Compute Engine for a full list of accelerator types.
type: string
type: object
type: array
image:
description: |-
Image is the full reference to a valid image to be used for this machine.
Takes precedence over ImageFamily.
type: string
imageFamily:
description: ImageFamily is the full reference to a valid
image family to be used for this machine.
type: string
instanceType:
description: 'InstanceType is the type of instance to create.
Example: n1.standard-2'
type: string
ipForwarding:
default: Enabled
description: |-
IPForwarding Allows this instance to send and receive packets with non-matching destination or source IPs.
This is required if you plan to use this instance to forward routes. Defaults to enabled.
enum:
- Enabled
- Disabled
type: string
onHostMaintenance:
description: |-
OnHostMaintenance determines the behavior when a maintenance event occurs that might cause the instance to reboot.
If omitted, the platform chooses a default, which is subject to change over time, currently that default is "Migrate".
enum:
- Migrate
- Terminate
type: string
preemptible:
description: Preemptible defines if instance is preemptible
type: boolean
providerID:
description: ProviderID is the unique identifier as specified
by the cloud provider.
type: string
provisioningModel:
description: |-
ProvisioningModel defines if instance is spot.
If set to "Standard" while preemptible is true, then the VM will be of type "Preemptible".
If "Spot", VM type is "Spot". When unspecified, defaults to "Standard".
enum:
- Standard
- Spot
type: string
publicIP:
description: |-
PublicIP specifies whether the instance should get a public IP.
Set this to true if you don't have a NAT instances or Cloud Nat setup.
type: boolean
resourceManagerTags:
description: |-
ResourceManagerTags is an optional set of tags to apply to GCP resources managed
by the GCP provider. GCP supports a maximum of 50 tags per resource.
items:
description: ResourceManagerTag is a tag to apply to GCP
resources managed by the GCP provider.
properties:
key:
description: |-
Key is the key part of the tag. A tag key can have a maximum of 63 characters and cannot
be empty. Tag key must begin and end with an alphanumeric character, and must contain
only uppercase, lowercase alphanumeric characters, and the following special
characters `._-`.
maxLength: 63
minLength: 1
pattern: ^[a-zA-Z0-9]([0-9A-Za-z_.-]{0,61}[a-zA-Z0-9])?$
type: string
parentID:
description: |-
ParentID is the ID of the hierarchical resource where the tags are defined
e.g. at the Organization or the Project level. To find the Organization or Project ID ref
https://cloud.google.com/resource-manager/docs/creating-managing-organization#retrieving_your_organization_id
https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects
An OrganizationID must consist of decimal numbers, and cannot have leading zeroes.
A ProjectID must be 6 to 30 characters in length, can only contain lowercase letters,
numbers, and hyphens, and must start with a letter, and cannot end with a hyphen.
maxLength: 32
minLength: 1
pattern: (^[1-9][0-9]{0,31}$)|(^[a-z][a-z0-9-]{4,28}[a-z0-9]$)
type: string
value:
description: |-
Value is the value part of the tag. A tag value can have a maximum of 63 characters and
cannot be empty. Tag value must begin and end with an alphanumeric character, and must
contain only uppercase, lowercase alphanumeric characters, and the following special
characters `_-.@%=+:,*#&(){}[]` and spaces.
maxLength: 63
minLength: 1
pattern: ^[a-zA-Z0-9]([0-9A-Za-z_.@%=+:,*#&()\[\]{}\-\s]{0,61}[a-zA-Z0-9])?$
type: string
required:
- key
- parentID
- value
type: object
type: array
rootDeviceSize:
description: |-
RootDeviceSize is the size of the root volume in GB.
Defaults to 30.
format: int64
type: integer
rootDeviceType:
description: |-
RootDeviceType is the type of the root volume.
Supported types of root volumes:
1. "pd-standard" - Standard (HDD) persistent disk
2. "pd-ssd" - SSD persistent disk
3. "pd-balanced" - Balanced Persistent Disk
4. "hyperdisk-balanced" - Hyperdisk Balanced
Default is "pd-standard".
type: string
rootDiskEncryptionKey:
description: RootDiskEncryptionKey defines the KMS key to
be used to encrypt the root disk.
properties:
keyType:
description: |-
KeyType is the type of encryption key. Must be either Managed, aka Customer-Managed Encryption Key (CMEK) or
Supplied, aka Customer-Supplied EncryptionKey (CSEK).
enum:
- Managed
- Supplied
type: string
kmsKeyServiceAccount:
description: |-
KMSKeyServiceAccount is the service account being used for the encryption request for the given KMS key.
If absent, the Compute Engine default service account is used. For example:
"kmsKeyServiceAccount": "name@project_id.iam.gserviceaccount.com.
The maximum length is based on the Service Account ID (max 30), Project (max 30), and a valid gcloud email
suffix ("iam.gserviceaccount.com").
maxLength: 85
pattern: '[-_[A-Za-z0-9]+@[-_[A-Za-z0-9]+.iam.gserviceaccount.com'
type: string
managedKey:
description: ManagedKey references keys managed by the
Cloud Key Management Service. This should be set when
KeyType is Managed.
properties:
kmsKeyName:
description: |-
KMSKeyName is the name of the encryption key that is stored in Google Cloud KMS. For example:
"kmsKeyName": "projects/kms_project_id/locations/region/keyRings/key_region/cryptoKeys/key
maxLength: 160
pattern: projects\/[-_[A-Za-z0-9]+\/locations\/[-_[A-Za-z0-9]+\/keyRings\/[-_[A-Za-z0-9]+\/cryptoKeys\/[-_[A-Za-z0-9]+
type: string
required:
- kmsKeyName
type: object
suppliedKey:
description: SuppliedKey provides the key used to create
or manage a disk. This should be set when KeyType is
Managed.
maxProperties: 1
minProperties: 1
properties:
rawKey:
description: |-
RawKey specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648
base64 to either encrypt or decrypt this resource. You can provide either the rawKey or the rsaEncryptedKey.
For example: "rawKey": "SGVsbG8gZnJvbSBHb29nbGUgQ2xvdWQgUGxhdGZvcm0="
format: byte
type: string
rsaEncryptedKey:
description: |-
RSAEncryptedKey specifies an RFC 4648 base64 encoded, RSA-wrapped 2048-bit customer-supplied encryption
key to either encrypt or decrypt this resource. You can provide either the rawKey or the
rsaEncryptedKey.
For example: "rsaEncryptedKey": "ieCx/NcW06PcT7Ep1X6LUTc/hLvUDYyzSZPPVCVPTVEohpeHASqC8uw5TzyO9U+Fka9JFHi
z0mBibXUInrC/jEk014kCK/NPjYgEMOyssZ4ZINPKxlUh2zn1bV+MCaTICrdmuSBTWlUUiFoDi
D6PYznLwh8ZNdaheCeZ8ewEXgFQ8V+sDroLaN3Xs3MDTXQEMMoNUXMCZEIpg9Vtp9x2oe=="
The key must meet the following requirements before you can provide it to Compute Engine:
1. The key is wrapped using a RSA public key certificate provided by Google.
2. After being wrapped, the key must be encoded in RFC 4648 base64 encoding.
Gets the RSA public key certificate provided by Google at: https://cloud-certs.storage.googleapis.com/google-cloud-csek-ingress.pem
format: byte
type: string
type: object
required:
- keyType
type: object
serviceAccounts:
description: |-
ServiceAccount specifies the service account email and which scopes to assign to the machine.
Defaults to: email: "default", scope: []{compute.CloudPlatformScope}
properties:
email:
description: 'Email: Email address of the service account.'
type: string
scopes:
description: |-
Scopes: The list of scopes to be made available for this service
account.
items:
type: string
type: array
type: object
shieldedInstanceConfig:
description: ShieldedInstanceConfig is the Shielded VM configuration
for this machine
properties:
integrityMonitoring:
description: |-
IntegrityMonitoring determines whether the instance should have integrity monitoring that verify the runtime boot integrity.
Compares the most recent boot measurements to the integrity policy baseline and return
a pair of pass/fail results depending on whether they match or not.
If omitted, the platform chooses a default, which is subject to change over time, currently that default is Enabled.
enum:
- Enabled
- Disabled
type: string
secureBoot:
description: |-
SecureBoot Defines whether the instance should have secure boot enabled.
Secure Boot verify the digital signature of all boot components, and halting the boot process if signature verification fails.
If omitted, the platform chooses a default, which is subject to change over time, currently that default is Disabled.
enum:
- Enabled
- Disabled
type: string
virtualizedTrustedPlatformModule:
description: |-
VirtualizedTrustedPlatformModule enable virtualized trusted platform module measurements to create a known good boot integrity policy baseline.
The integrity policy baseline is used for comparison with measurements from subsequent VM boots to determine if anything has changed.
If omitted, the platform chooses a default, which is subject to change over time, currently that default is Enabled.
enum:
- Enabled
- Disabled
type: string
type: object
subnet:
description: |-
Subnet is a reference to the subnetwork to use for this instance. If not specified,
the first subnetwork retrieved from the Cluster Region and Network is picked.
type: string
required:
- instanceType
type: object
required:
- spec
type: object
required:
- template
type: object
type: object
served: true
storage: true