×

Specification

Property Type Description

apiVersion

string

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

kind

string

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

metadata

ObjectMeta

Standard object’s metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata

spec

object

GCPMachineSpec defines the desired state of GCPMachine.

status

object

GCPMachineStatus defines the observed state of GCPMachine.

.spec

Description

GCPMachineSpec defines the desired state of GCPMachine.

Type

object

Required
  • instanceType

Property Type Description

additionalDisks

array

AdditionalDisks are optional non-boot attached disks.

additionalDisks[]

object

AttachedDiskSpec degined GCP machine disk.

additionalLabels

object (string)

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.

additionalMetadata

array

AdditionalMetadata is an optional set of metadata to add to an instance, in addition to the ones added by default by the GCP provider.

additionalMetadata[]

object

MetadataItem defines a single piece of metadata associated with an instance.

additionalNetworkTags

array (string)

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.

confidentialCompute

string

ConfidentialCompute Defines whether the instance should have confidential compute enabled. If enabled 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.

image

string

Image is the full reference to a valid image to be used for this machine. Takes precedence over ImageFamily.

imageFamily

string

ImageFamily is the full reference to a valid image family to be used for this machine.

instanceType

string

InstanceType is the type of instance to create. Example: n1.standard-2

ipForwarding

string

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.

onHostMaintenance

string

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".

preemptible

boolean

Preemptible defines if instance is preemptible

providerID

string

ProviderID is the unique identifier as specified by the cloud provider.

publicIP

boolean

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.

resourceManagerTags

array

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.

resourceManagerTags[]

object

ResourceManagerTag is a tag to apply to GCP resources managed by the GCP provider.

rootDeviceSize

integer

RootDeviceSize is the size of the root volume in GB. Defaults to 30.

rootDeviceType

string

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 Default is "pd-standard".

rootDiskEncryptionKey

object

RootDiskEncryptionKey defines the KMS key to be used to encrypt the root disk.

serviceAccounts

object

ServiceAccount specifies the service account email and which scopes to assign to the machine. Defaults to: email: "default", scope: []{compute.CloudPlatformScope}

shieldedInstanceConfig

object

ShieldedInstanceConfig is the Shielded VM configuration for this machine

subnet

string

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.

.spec.additionalDisks

Description

AdditionalDisks are optional non-boot attached disks.

Type

array

.spec.additionalDisks[]

Description

AttachedDiskSpec degined GCP machine disk.

Type

object

Property Type Description

deviceType

string

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). Default is "pd-standard".

encryptionKey

object

EncryptionKey defines the KMS key to be used to encrypt the disk.

size

integer

Size is the size of the disk in GBs. Defaults to 30GB. For "local-ssd" size is always 375GB.

.spec.additionalDisks[].encryptionKey

Description

EncryptionKey defines the KMS key to be used to encrypt the disk.

Type

object

Required
  • keyType

Property Type Description

keyType

string

KeyType is the type of encryption key. Must be either Managed, aka Customer-Managed Encryption Key (CMEK) or Supplied, aka Customer-Supplied EncryptionKey (CSEK).

kmsKeyServiceAccount

string

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").

managedKey

object

ManagedKey references keys managed by the Cloud Key Management Service. This should be set when KeyType is Managed.

suppliedKey

object

SuppliedKey provides the key used to create or manage a disk. This should be set when KeyType is Managed.

.spec.additionalDisks[].encryptionKey.managedKey

Description

ManagedKey references keys managed by the Cloud Key Management Service. This should be set when KeyType is Managed.

Type

object

Property Type Description

kmsKeyName

string

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

.spec.additionalDisks[].encryptionKey.suppliedKey

Description

SuppliedKey provides the key used to create or manage a disk. This should be set when KeyType is Managed.

Type

object

Property Type Description

rawKey

string

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="

rsaEncryptedKey

string

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

.spec.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.

Type

array

.spec.additionalMetadata[]

Description

MetadataItem defines a single piece of metadata associated with an instance.

Type

object

Required
  • key

Property Type Description

key

string

Key is the identifier for the metadata entry.

value

string

Value is the value of the metadata entry.

.spec.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.

Type

array

.spec.resourceManagerTags[]

Description

ResourceManagerTag is a tag to apply to GCP resources managed by the GCP provider.

Type

object

Required
  • key

  • parentID

  • value

Property Type Description

key

string

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 ._-.

parentID

string

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.

value

string

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.

.spec.rootDiskEncryptionKey

Description

RootDiskEncryptionKey defines the KMS key to be used to encrypt the root disk.

Type

object

Required
  • keyType

Property Type Description

keyType

string

KeyType is the type of encryption key. Must be either Managed, aka Customer-Managed Encryption Key (CMEK) or Supplied, aka Customer-Supplied EncryptionKey (CSEK).

kmsKeyServiceAccount

string

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").

managedKey

object

ManagedKey references keys managed by the Cloud Key Management Service. This should be set when KeyType is Managed.

suppliedKey

object

SuppliedKey provides the key used to create or manage a disk. This should be set when KeyType is Managed.

.spec.rootDiskEncryptionKey.managedKey

Description

ManagedKey references keys managed by the Cloud Key Management Service. This should be set when KeyType is Managed.

Type

object

Property Type Description

kmsKeyName

string

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

.spec.rootDiskEncryptionKey.suppliedKey

Description

SuppliedKey provides the key used to create or manage a disk. This should be set when KeyType is Managed.

Type

object

Property Type Description

rawKey

string

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="

rsaEncryptedKey

string

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

.spec.serviceAccounts

Description

ServiceAccount specifies the service account email and which scopes to assign to the machine. Defaults to: email: "default", scope: []{compute.CloudPlatformScope}

Type

object

Property Type Description

email

string

Email: Email address of the service account.

scopes

array (string)

Scopes: The list of scopes to be made available for this service account.

.spec.shieldedInstanceConfig

Description

ShieldedInstanceConfig is the Shielded VM configuration for this machine

Type

object

Property Type Description

integrityMonitoring

string

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.

secureBoot

string

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.

virtualizedTrustedPlatformModule

string

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.

.status

Description

GCPMachineStatus defines the observed state of GCPMachine.

Type

object

Property Type Description

addresses

array

Addresses contains the GCP instance associated addresses.

addresses[]

object

NodeAddress contains information for the node’s address.

failureMessage

string

FailureMessage will be set in the event that there is a terminal problem reconciling the Machine and will contain a more verbose string suitable for logging and human consumption.

This field should not be set for transitive errors that a controller faces that are expected to be fixed automatically over time (like service outages), but instead indicate that something is fundamentally wrong with the Machine’s spec or the configuration of the controller, and that manual intervention is required. Examples of terminal errors would be invalid combinations of settings in the spec, values that are unsupported by the controller, or the responsible controller itself being critically misconfigured.

Any transient errors that occur during the reconciliation of Machines can be added as events to the Machine object and/or logged in the controller’s output.

failureReason

string

FailureReason will be set in the event that there is a terminal problem reconciling the Machine and will contain a succinct value suitable for machine interpretation.

This field should not be set for transitive errors that a controller faces that are expected to be fixed automatically over time (like service outages), but instead indicate that something is fundamentally wrong with the Machine’s spec or the configuration of the controller, and that manual intervention is required. Examples of terminal errors would be invalid combinations of settings in the spec, values that are unsupported by the controller, or the responsible controller itself being critically misconfigured.

Any transient errors that occur during the reconciliation of Machines can be added as events to the Machine object and/or logged in the controller’s output.

instanceState

string

InstanceStatus is the status of the GCP instance for this machine.

ready

boolean

Ready is true when the provider resource is ready.

.status.addresses

Description

Addresses contains the GCP instance associated addresses.

Type

array

.status.addresses[]

Description

NodeAddress contains information for the node’s address.

Type

object

Required
  • address

  • type

Property Type Description

address

string

The node address.

type

string

Node address type, one of Hostname, ExternalIP or InternalIP.

API endpoints

The following API endpoints are available:

  • /apis/infrastructure.cluster.x-k8s.io/v1beta1/gcpmachines

    • GET: list objects of kind GCPMachine

  • /apis/infrastructure.cluster.x-k8s.io/v1beta1/namespaces/{namespace}/gcpmachines

    • DELETE: delete collection of GCPMachine

    • GET: list objects of kind GCPMachine

    • POST: create a GCPMachine

  • /apis/infrastructure.cluster.x-k8s.io/v1beta1/namespaces/{namespace}/gcpmachines/{name}

    • DELETE: delete a GCPMachine

    • GET: read the specified GCPMachine

    • PATCH: partially update the specified GCPMachine

    • PUT: replace the specified GCPMachine

  • /apis/infrastructure.cluster.x-k8s.io/v1beta1/namespaces/{namespace}/gcpmachines/{name}/status

    • GET: read status of the specified GCPMachine

    • PATCH: partially update status of the specified GCPMachine

    • PUT: replace status of the specified GCPMachine

/apis/infrastructure.cluster.x-k8s.io/v1beta1/gcpmachines

HTTP method

GET

Description

list objects of kind GCPMachine

Table 1. HTTP responses
HTTP code Reponse body

200 - OK

GCPMachineList schema

401 - Unauthorized

Empty

/apis/infrastructure.cluster.x-k8s.io/v1beta1/namespaces/{namespace}/gcpmachines

HTTP method

DELETE

Description

delete collection of GCPMachine

Table 2. HTTP responses
HTTP code Reponse body

200 - OK

Status schema

401 - Unauthorized

Empty

HTTP method

GET

Description

list objects of kind GCPMachine

Table 3. HTTP responses
HTTP code Reponse body

200 - OK

GCPMachineList schema

401 - Unauthorized

Empty

HTTP method

POST

Description

create a GCPMachine

Table 4. Query parameters
Parameter Type Description

dryRun

string

When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed

fieldValidation

string

fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.

Table 5. Body parameters
Parameter Type Description

body

GCPMachine schema

Table 6. HTTP responses
HTTP code Reponse body

200 - OK

GCPMachine schema

201 - Created

GCPMachine schema

202 - Accepted

GCPMachine schema

401 - Unauthorized

Empty

/apis/infrastructure.cluster.x-k8s.io/v1beta1/namespaces/{namespace}/gcpmachines/{name}

Table 7. Global path parameters
Parameter Type Description

name

string

name of the GCPMachine

HTTP method

DELETE

Description

delete a GCPMachine

Table 8. Query parameters
Parameter Type Description

dryRun

string

When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed

Table 9. HTTP responses
HTTP code Reponse body

200 - OK

Status schema

202 - Accepted

Status schema

401 - Unauthorized

Empty

HTTP method

GET

Description

read the specified GCPMachine

Table 10. HTTP responses
HTTP code Reponse body

200 - OK

GCPMachine schema

401 - Unauthorized

Empty

HTTP method

PATCH

Description

partially update the specified GCPMachine

Table 11. Query parameters
Parameter Type Description

dryRun

string

When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed

fieldValidation

string

fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.

Table 12. HTTP responses
HTTP code Reponse body

200 - OK

GCPMachine schema

401 - Unauthorized

Empty

HTTP method

PUT

Description

replace the specified GCPMachine

Table 13. Query parameters
Parameter Type Description

dryRun

string

When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed

fieldValidation

string

fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.

Table 14. Body parameters
Parameter Type Description

body

GCPMachine schema

Table 15. HTTP responses
HTTP code Reponse body

200 - OK

GCPMachine schema

201 - Created

GCPMachine schema

401 - Unauthorized

Empty

/apis/infrastructure.cluster.x-k8s.io/v1beta1/namespaces/{namespace}/gcpmachines/{name}/status

Table 16. Global path parameters
Parameter Type Description

name

string

name of the GCPMachine

HTTP method

GET

Description

read status of the specified GCPMachine

Table 17. HTTP responses
HTTP code Reponse body

200 - OK

GCPMachine schema

401 - Unauthorized

Empty

HTTP method

PATCH

Description

partially update status of the specified GCPMachine

Table 18. Query parameters
Parameter Type Description

dryRun

string

When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed

fieldValidation

string

fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.

Table 19. HTTP responses
HTTP code Reponse body

200 - OK

GCPMachine schema

401 - Unauthorized

Empty

HTTP method

PUT

Description

replace status of the specified GCPMachine

Table 20. Query parameters
Parameter Type Description

dryRun

string

When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed

fieldValidation

string

fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.

Table 21. Body parameters
Parameter Type Description

body

GCPMachine schema

Table 22. HTTP responses
HTTP code Reponse body

200 - OK

GCPMachine schema

201 - Created

GCPMachine schema

401 - Unauthorized

Empty