You are viewing an outdated version of provider-gcp-compute.Go to Latest
upbound/provider-gcp-compute@v0.35.1
InstanceTemplate
compute.gcp.upbound.io
InstanceTemplate
upbound/provider-gcp-compute@v0.35.1compute.gcp.upbound.io

InstanceTemplate is the Schema for the InstanceTemplates API. Manages a VM instance template resource within GCE.

Type

CRD

Group

compute.gcp.upbound.io

Version

v1beta1

apiVersion: compute.gcp.upbound.io/v1beta1

kind: InstanceTemplate

API Documentation
apiVersion
string
kind
string
metadata
object
spec
object
object

InstanceTemplateSpec defines the desired state of InstanceTemplate

forProvider
requiredobject
requiredobject

No description provided.

array

Configure Nested Virtualisation and Simultaneous Hyper Threading on this VM. Structure is documented below

array

Enable Confidential Mode on this VM. Structure is documented below

disk
array
array

Disks to attach to instances created from this template. This can be specified multiple times for multiple disks. Structure is documented below.

autoDelete
boolean
boot
boolean
array

Encrypts or decrypts a disk using a customer-supplied encryption key.

diskName
string
diskType
string
interface
string
labels
object
mode
string
array
  • A list (short name or id) of resource policies to attach to this disk for automatic snapshot creations. Currently a max of 1 resource policy is supported.
source
string
array

The customer-supplied encryption key of the source image. Required if the source image is protected by a customer-supplied encryption key.

sourceRef
object
object

Reference to a Disk in compute to populate source.

name
requiredstring
policy
object
object

Policies for referencing.

resolve
string
object

Selector for a Disk in compute to populate source.

policy
object
object

Policies for selection.

resolve
string
array

The customer-supplied encryption key of the source snapshot. Structure documented below.

type
string
array

List of the type and count of accelerator cards attached to the instance. Structure documented below.

count
number
type
string
labels
object
metadata
object
name
string
array

Networks to attach to instances created from this template. This can be specified multiple times for multiple networks. Structure is documented below.

array

Access configurations, i.e. IPs via which this instance can be accessed via the Internet.g. via tunnel or because it is running on another cloud instance on that network). This block can be repeated multiple times. Structure documented below.

natIp
string
array

An array of alias IP ranges for this network interface. Can only be specified for network interfaces on subnet-mode networks. Structure documented below.

array

An array of IPv6 access configurations for this interface. Currently, only one IPv6 access config, DIRECT_IPV6, is supported. If there is no ipv6AccessConfig specified, then this instance will have no external IPv6 Internet access. Structure documented below.

network
string
networkIp
string
object

Reference to a Network to populate network.

name
requiredstring
policy
object
object

Policies for referencing.

resolve
string
object

Selector for a Network to populate network.

policy
object
object

Policies for selection.

resolve
string
nicType
string
stackType
string
object

Reference to a Subnetwork to populate subnetwork.

name
requiredstring
policy
object
object

Policies for referencing.

resolve
string
object

Selector for a Subnetwork to populate subnetwork.

policy
object
object

Policies for selection.

resolve
string
project
string
region
string
array

Specifies the reservations that this instance can consume from. Structure is documented below.

array

Specifies the label selector for the reservation to use.. Structure is documented below.

key
string
values
array
array

Corresponds to the label values of a reservation resource.

type
string
array
  • A list of self_links of resource policies to attach to the instance. Modifying this list will cause the instance to recreate. Currently a max of 1 resource policy is supported.
array

The scheduling strategy to use. More details about this configuration option are detailed below.

array

Specifies node affinities or anti-affinities to determine which sole-tenant nodes your instances and managed instance groups will use as host systems. Read more on sole-tenant node creation here. Structure documented below.

key
string
operator
string
values
array
array

Corresponds to the label values of a reservation resource.

array

Service account to attach to the instance. Structure is documented below.

email
string
emailRef
object
object

Reference to a ServiceAccount in cloudplatform to populate email.

name
requiredstring
policy
object
object

Policies for referencing.

resolve
string
object

Selector for a ServiceAccount in cloudplatform to populate email.

policy
object
object

Policies for selection.

resolve
string
scopes
array
array

A list of service scopes. Both OAuth2 URLs and gcloud short names are supported. To allow full access to all Cloud APIs, use the cloud-platform scope. See a complete list of scopes here.

array

Enable Shielded VM on this instance. Shielded VM provides verifiable integrity to prevent against malware and rootkits. Defaults to disabled. Structure is documented below. Note: shielded_instance_config can only be used with boot images with shielded vm support. See the complete list here.

tags
array
array

Tags to attach to the instance.

object

THIS IS AN ALPHA FIELD. Do not use it in production. It is not honored unless the relevant Crossplane feature flag is enabled, and may be changed or removed without notice. InitProvider holds the same fields as ForProvider, with the exception of Identifier and other resource reference fields. The fields that are in InitProvider are merged into ForProvider when the resource is created. The same fields are also added to the terraform ignore_changes hook, to avoid updating them after creation. This is useful for fields that are required on creation, but we do not desire to update them after creation, for example because of an external controller is managing them, like an autoscaler.

array

Configure Nested Virtualisation and Simultaneous Hyper Threading on this VM. Structure is documented below

array

Enable Confidential Mode on this VM. Structure is documented below

disk
array
array

Disks to attach to instances created from this template. This can be specified multiple times for multiple disks. Structure is documented below.

autoDelete
boolean
boot
boolean
array

Encrypts or decrypts a disk using a customer-supplied encryption key.

diskName
string
diskType
string
interface
string
labels
object
mode
string
array
  • A list (short name or id) of resource policies to attach to this disk for automatic snapshot creations. Currently a max of 1 resource policy is supported.
array

The customer-supplied encryption key of the source image. Required if the source image is protected by a customer-supplied encryption key.

array

The customer-supplied encryption key of the source snapshot. Structure documented below.

type
string
array

List of the type and count of accelerator cards attached to the instance. Structure documented below.

count
number
type
string
labels
object
metadata
object
name
string
array

Networks to attach to instances created from this template. This can be specified multiple times for multiple networks. Structure is documented below.

array

Access configurations, i.e. IPs via which this instance can be accessed via the Internet.g. via tunnel or because it is running on another cloud instance on that network). This block can be repeated multiple times. Structure documented below.

natIp
string
array

An array of alias IP ranges for this network interface. Can only be specified for network interfaces on subnet-mode networks. Structure documented below.

array

An array of IPv6 access configurations for this interface. Currently, only one IPv6 access config, DIRECT_IPV6, is supported. If there is no ipv6AccessConfig specified, then this instance will have no external IPv6 Internet access. Structure documented below.

networkIp
string
nicType
string
stackType
string
project
string
region
string
array

Specifies the reservations that this instance can consume from. Structure is documented below.

array

Specifies the label selector for the reservation to use.. Structure is documented below.

key
string
values
array
array

Corresponds to the label values of a reservation resource.

type
string
array
  • A list of self_links of resource policies to attach to the instance. Modifying this list will cause the instance to recreate. Currently a max of 1 resource policy is supported.
array

The scheduling strategy to use. More details about this configuration option are detailed below.

array

Specifies node affinities or anti-affinities to determine which sole-tenant nodes your instances and managed instance groups will use as host systems. Read more on sole-tenant node creation here. Structure documented below.

key
string
operator
string
values
array
array

Corresponds to the label values of a reservation resource.

array

Service account to attach to the instance. Structure is documented below.

scopes
array
array

A list of service scopes. Both OAuth2 URLs and gcloud short names are supported. To allow full access to all Cloud APIs, use the cloud-platform scope. See a complete list of scopes here.

array

Enable Shielded VM on this instance. Shielded VM provides verifiable integrity to prevent against malware and rootkits. Defaults to disabled. Structure is documented below. Note: shielded_instance_config can only be used with boot images with shielded vm support. See the complete list here.

tags
array
array

Tags to attach to the instance.

array

THIS IS AN ALPHA FIELD. Do not use it in production. It is not honored unless the relevant Crossplane feature flag is enabled, and may be changed or removed without notice. ManagementPolicies specify the array of actions Crossplane is allowed to take on the managed and external resources. This field is planned to replace the DeletionPolicy field in a future release. Currently, both could be set independently and non-default values would be honored if the feature flag is enabled. If both are custom, the DeletionPolicy field will be ignored. See the design doc for more information: https://github.com/crossplane/crossplane/blob/499895a25d1a1a0ba1604944ef98ac7a1a71f197/design/design-doc-observe-only-resources.md?plain=1#L223 and this one: https://github.com/crossplane/crossplane/blob/444267e84783136daa93568b364a5f01228cacbe/design/one-pager-ignore-changes.md

object

ProviderConfigReference specifies how the provider that will be used to create, observe, update, and delete this managed resource should be configured.

name
requiredstring
policy
object
object

Policies for referencing.

resolve
string
object

ProviderReference specifies the provider that will be used to create, observe, update, and delete this managed resource. Deprecated: Please use ProviderConfigReference, i.e. providerConfigRef

name
requiredstring
policy
object
object

Policies for referencing.

resolve
string
object

PublishConnectionDetailsTo specifies the connection secret config which contains a name, metadata and a reference to secret store config to which any connection details for this managed resource should be written. Connection details frequently include the endpoint, username, and password required to connect to the managed resource.

configRef
object
object

SecretStoreConfigRef specifies which secret store config should be used for this ConnectionSecret.

name
requiredstring
policy
object
object

Policies for referencing.

resolve
string
metadata
object
object

Metadata is the metadata for connection secret.

labels
object
type
string
name
requiredstring
object

WriteConnectionSecretToReference specifies the namespace and name of a Secret to which any connection details for this managed resource should be written. Connection details frequently include the endpoint, username, and password required to connect to the managed resource. This field is planned to be replaced in a future release in favor of PublishConnectionDetailsTo. Currently, both could be set independently and connection details would be published to both without affecting each other.

name
requiredstring
namespace
requiredstring
status
object
object

InstanceTemplateStatus defines the observed state of InstanceTemplate.

object

No description provided.

array

Configure Nested Virtualisation and Simultaneous Hyper Threading on this VM. Structure is documented below

array

Enable Confidential Mode on this VM. Structure is documented below

disk
array
array

Disks to attach to instances created from this template. This can be specified multiple times for multiple disks. Structure is documented below.

autoDelete
boolean
boot
boolean
array

Encrypts or decrypts a disk using a customer-supplied encryption key.

diskName
string
diskType
string
interface
string
labels
object
mode
string
array
  • A list (short name or id) of resource policies to attach to this disk for automatic snapshot creations. Currently a max of 1 resource policy is supported.
source
string
array

The customer-supplied encryption key of the source image. Required if the source image is protected by a customer-supplied encryption key.

array

The customer-supplied encryption key of the source snapshot. Structure documented below.

type
string
array

List of the type and count of accelerator cards attached to the instance. Structure documented below.

count
number
type
string
id
string
labels
object
metadata
object
name
string
array

Networks to attach to instances created from this template. This can be specified multiple times for multiple networks. Structure is documented below.

array

Access configurations, i.e. IPs via which this instance can be accessed via the Internet.g. via tunnel or because it is running on another cloud instance on that network). This block can be repeated multiple times. Structure documented below.

array

An array of alias IP ranges for this network interface. Can only be specified for network interfaces on subnet-mode networks. Structure documented below.

array

An array of IPv6 access configurations for this interface. Currently, only one IPv6 access config, DIRECT_IPV6, is supported. If there is no ipv6AccessConfig specified, then this instance will have no external IPv6 Internet access. Structure documented below.

name
string
network
string
networkIp
string
nicType
string
stackType
string
project
string
region
string
array

Specifies the reservations that this instance can consume from. Structure is documented below.

array

Specifies the label selector for the reservation to use.. Structure is documented below.

key
string
values
array
array

Corresponds to the label values of a reservation resource.

type
string
array
  • A list of self_links of resource policies to attach to the instance. Modifying this list will cause the instance to recreate. Currently a max of 1 resource policy is supported.
array

The scheduling strategy to use. More details about this configuration option are detailed below.

array

Specifies node affinities or anti-affinities to determine which sole-tenant nodes your instances and managed instance groups will use as host systems. Read more on sole-tenant node creation here. Structure documented below.

key
string
operator
string
values
array
array

Corresponds to the label values of a reservation resource.

selfLink
string
array

Service account to attach to the instance. Structure is documented below.

email
string
scopes
array
array

A list of service scopes. Both OAuth2 URLs and gcloud short names are supported. To allow full access to all Cloud APIs, use the cloud-platform scope. See a complete list of scopes here.

array

Enable Shielded VM on this instance. Shielded VM provides verifiable integrity to prevent against malware and rootkits. Defaults to disabled. Structure is documented below. Note: shielded_instance_config can only be used with boot images with shielded vm support. See the complete list here.

tags
array
array

Tags to attach to the instance.

array

Conditions of the resource.

lastTransitionTime
requiredstring
message
string
reason
requiredstring
status
requiredstring
type
requiredstring
Discover the building blocks for your internal cloud platform.
© 2024 Upbound, Inc.
Solutions