5.29.0 (latest) 5.28.0 5.27.0 5.26.0 5.25.0 5.24.0 5.23.0 5.22.0 5.21.0 5.20.0 5.19.0 5.18.0 5.17.0 5.16.0 5.15.0 5.14.0 5.13.0 5.12.0 5.11.0 5.10.0 5.9.0 5.8.0 5.7.0 5.6.0 5.5.0 5.4.0 5.3.0 5.2.0 5.1.0 5.0.0 4.0.0 3.4.0 3.3.0 3.2.0 3.1.0

```javascript
public sealed class GkeNodePoolConfig.Types.GkeNodeConfig : IMessage<GkeNodePoolConfig.Types.GkeNodeConfig>, IEquatable<GkeNodePoolConfig.Types.GkeNodeConfig>, IDeepCloneable<GkeNodePoolConfig.Types.GkeNodeConfig>, IBufferMessage, IMessage
```
Reference documentation and code samples for the Google Cloud Dataproc v1 API class GkeNodePoolConfig.Types.GkeNodeConfig.

Parameters that describe cluster nodes.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> GkeNodePoolConfig.Types.GkeNodeConfig

## Implements

[IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.md.txt)[GkeNodePoolConfig](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.GkeNodePoolConfig.md.txt)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.GkeNodePoolConfig.Types.md.txt)[GkeNodeConfig](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.GkeNodePoolConfig.Types.GkeNodeConfig.md.txt), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[GkeNodePoolConfig](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.GkeNodePoolConfig.md.txt)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.GkeNodePoolConfig.Types.md.txt)[GkeNodeConfig](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.GkeNodePoolConfig.Types.GkeNodeConfig.md.txt), [IDeepCloneable](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.md.txt)[GkeNodePoolConfig](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.GkeNodePoolConfig.md.txt)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.GkeNodePoolConfig.Types.md.txt)[GkeNodeConfig](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.GkeNodePoolConfig.Types.GkeNodeConfig.md.txt), [IBufferMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.md.txt), [IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.md.txt)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.Dataproc.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.md.txt)

## Assembly

Google.Cloud.Dataproc.V1.dll

## Constructors

### GkeNodeConfig()

```javascript
public GkeNodeConfig()
```

### GkeNodeConfig(GkeNodeConfig)

```javascript
public GkeNodeConfig(GkeNodePoolConfig.Types.GkeNodeConfig other)
```

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `GkeNodePoolConfigTypesGkeNodeConfig` |

## Properties

### Accelerators

```javascript
public RepeatedField<GkeNodePoolConfig.Types.GkeNodePoolAcceleratorConfig> Accelerators { get; }
```
Optional. A list of [hardware
accelerators](https://cloud.google.com/compute/docs/gpus) to attach to
each node.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `RepeatedFieldGkeNodePoolConfigTypesGkeNodePoolAcceleratorConfig` |   |

### BootDiskKmsKey

```javascript
public string BootDiskKmsKey { get; set; }
```
Optional. The [Customer Managed Encryption Key (CMEK)](https://cloud.google.com/kubernetes-engine/docs/how-to/using-cmek)
used to encrypt the boot disk attached to each node in the node pool.
Specify the key using the following format:
`projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### BootDiskKmsKeyAsCryptoKeyName

```javascript
public CryptoKeyName BootDiskKmsKeyAsCryptoKeyName { get; set; }
```
[CryptoKeyName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.CryptoKeyName.md.txt)-typed view over the [BootDiskKmsKey](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.GkeNodePoolConfig.Types.GkeNodeConfig.md.txt#Google_Cloud_Dataproc_V1_GkeNodePoolConfig_Types_GkeNodeConfig_BootDiskKmsKey) resource name property.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `CryptoKeyName` |   |

### LocalSsdCount

```javascript
public int LocalSsdCount { get; set; }
```
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](https://cloud.google.com/compute/docs/disks/local-ssd)).

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### MachineType

```javascript
public string MachineType { get; set; }
```
Optional. The name of a Compute Engine [machine
type](https://cloud.google.com/compute/docs/machine-types).

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### MinCpuPlatform

```javascript
public string MinCpuPlatform { get; set; }
```
Optional. [Minimum CPU
platform](https://cloud.google.com/compute/docs/instances/specify-min-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".

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### Preemptible

```javascript
public bool Preemptible { get; set; }
```
Optional. Whether the nodes are created as legacy [preemptible VM
instances](https://cloud.google.com/compute/docs/instances/preemptible).
Also see
\[Spot\]\[google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig.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](https://docs.cloud.google.com/dataproc/docs/reference/rest/v1/projects.regions.clusters#role)
or in the DEFAULT node pool if the CONTROLLER role is not assigned (the
DEFAULT node pool will assume the CONTROLLER role).

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### Spot

```javascript
public bool Spot { get; set; }
```
Optional. Whether the nodes are created as [Spot VM instances](https://cloud.google.com/compute/docs/instances/spot).
Spot VMs are the latest update to legacy
\[preemptible
VMs\]\[google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig.preemptible\].
Spot VMs do not have a maximum lifetime. Legacy and Spot preemptible
nodes cannot be used in a node pool with the `CONTROLLER`
[role](https://docs.cloud.google.com/dataproc/docs/reference/rest/v1/projects.regions.clusters#role)
or in the DEFAULT node pool if the CONTROLLER role is not assigned (the
DEFAULT node pool will assume the CONTROLLER role).

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |