Reference documentation and code samples for the Google Cloud Dataproc V1 Client class GkeNodeConfig.
Parameters that describe cluster nodes.
Generated from protobuf message google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig
Namespace
Google \ Cloud \ Dataproc \ V1 \ GkeNodePoolConfigMethods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ machine_type
↳ local_ssd_count
int
Optional. The number of local SSD disks to attach to the node, which is limited by the maximum number of disks allowable per zone (see Adding Local SSDs ).
↳ preemptible
bool
Optional. Whether the nodes are created as legacy preemptible VM instances
. Also see Spot
VMs, preemptible VM instances without a maximum lifetime. Legacy and Spot preemptible nodes cannot be used in a node pool with the CONTROLLER
role
or in the DEFAULT node pool if the CONTROLLER role is not assigned (the DEFAULT node pool will assume the CONTROLLER role).
↳ accelerators
array< Google\Cloud\Dataproc\V1\GkeNodePoolConfig\GkeNodePoolAcceleratorConfig
>
Optional. A list of hardware accelerators to attach to each node.
↳ min_cpu_platform
string
Optional. Minimum CPU platform to be used by this instance. The instance may be scheduled on the specified or a newer CPU platform. Specify the friendly names of CPU platforms, such as "Intel Haswell"` or Intel Sandy Bridge".
↳ boot_disk_kms_key
string
Optional. The Customer Managed Encryption Key (CMEK)
used to encrypt the boot disk attached to each node in the node pool. Specify the key using the following format: projects/ KEY_PROJECT_ID
/locations/ LOCATION
/keyRings/ RING_NAME
/cryptoKeys/ KEY_NAME
.
↳ spot
bool
Optional. Whether the nodes are created as Spot VM instances
. Spot VMs are the latest update to legacy preemptible VMs
. Spot VMs do not have a maximum lifetime. Legacy and Spot preemptible nodes cannot be used in a node pool with the CONTROLLER
role
or in the DEFAULT node pool if the CONTROLLER role is not assigned (the DEFAULT node pool will assume the CONTROLLER role).
getMachineType
Optional. The name of a Compute Engine machine type .
string
setMachineType
Optional. The name of a Compute Engine machine type .
var
string
$this
getLocalSsdCount
Optional. The number of local SSD disks to attach to the node, which is limited by the maximum number of disks allowable per zone (see Adding Local SSDs ).
int
setLocalSsdCount
Optional. The number of local SSD disks to attach to the node, which is limited by the maximum number of disks allowable per zone (see Adding Local SSDs ).
var
int
$this
getPreemptible
Optional. Whether the nodes are created as legacy preemptible VM instances .
Also see Spot
VMs, preemptible VM instances without a maximum lifetime. Legacy and Spot
preemptible nodes cannot be used in a node pool with the CONTROLLER
role
or in the DEFAULT node pool if the CONTROLLER role is not assigned (the
DEFAULT node pool will assume the CONTROLLER role).
bool
setPreemptible
Optional. Whether the nodes are created as legacy preemptible VM instances .
Also see Spot
VMs, preemptible VM instances without a maximum lifetime. Legacy and Spot
preemptible nodes cannot be used in a node pool with the CONTROLLER
role
or in the DEFAULT node pool if the CONTROLLER role is not assigned (the
DEFAULT node pool will assume the CONTROLLER role).
var
bool
$this
getAccelerators
Optional. A list of hardware accelerators to attach to each node.
setAccelerators
Optional. A list of hardware accelerators to attach to each node.
$this
getMinCpuPlatform
Optional. Minimum CPU platform to be used by this instance. The instance may be scheduled on the specified or a newer CPU platform. Specify the friendly names of CPU platforms, such as "Intel Haswell"` or Intel Sandy Bridge".
string
setMinCpuPlatform
Optional. Minimum CPU platform to be used by this instance. The instance may be scheduled on the specified or a newer CPU platform. Specify the friendly names of CPU platforms, such as "Intel Haswell"` or Intel Sandy Bridge".
var
string
$this
getBootDiskKmsKey
Optional. The Customer Managed Encryption Key (CMEK) used to encrypt the boot disk attached to each node in the node pool.
Specify the key using the following format: projects/ KEY_PROJECT_ID
/locations/ LOCATION
/keyRings/ RING_NAME
/cryptoKeys/ KEY_NAME
.
string
setBootDiskKmsKey
Optional. The Customer Managed Encryption Key (CMEK) used to encrypt the boot disk attached to each node in the node pool.
Specify the key using the following format: projects/ KEY_PROJECT_ID
/locations/ LOCATION
/keyRings/ RING_NAME
/cryptoKeys/ KEY_NAME
.
var
string
$this
getSpot
Optional. Whether the nodes are created as Spot VM instances .
Spot VMs are the latest update to legacy preemptible
VMs
.
Spot VMs do not have a maximum lifetime. Legacy and Spot preemptible
nodes cannot be used in a node pool with the CONTROLLER
role
or in the DEFAULT node pool if the CONTROLLER role is not assigned (the
DEFAULT node pool will assume the CONTROLLER role).
bool
setSpot
Optional. Whether the nodes are created as Spot VM instances .
Spot VMs are the latest update to legacy preemptible
VMs
.
Spot VMs do not have a maximum lifetime. Legacy and Spot preemptible
nodes cannot be used in a node pool with the CONTROLLER
role
or in the DEFAULT node pool if the CONTROLLER role is not assigned (the
DEFAULT node pool will assume the CONTROLLER role).
var
bool
$this