ClusterNodePoolNodeConfig

data class ClusterNodePoolNodeConfig(val advancedMachineFeatures: ClusterNodePoolNodeConfigAdvancedMachineFeatures? = null, val bootDiskKmsKey: String? = null, val confidentialNodes: ClusterNodePoolNodeConfigConfidentialNodes? = null, val containerdConfig: ClusterNodePoolNodeConfigContainerdConfig? = null, val diskSizeGb: Int? = null, val diskType: String? = null, val effectiveTaints: List<ClusterNodePoolNodeConfigEffectiveTaint>? = null, val enableConfidentialStorage: Boolean? = null, val ephemeralStorageConfig: ClusterNodePoolNodeConfigEphemeralStorageConfig? = null, val ephemeralStorageLocalSsdConfig: ClusterNodePoolNodeConfigEphemeralStorageLocalSsdConfig? = null, val fastSocket: ClusterNodePoolNodeConfigFastSocket? = null, val gcfsConfig: ClusterNodePoolNodeConfigGcfsConfig? = null, val guestAccelerators: List<ClusterNodePoolNodeConfigGuestAccelerator>? = null, val gvnic: ClusterNodePoolNodeConfigGvnic? = null, val hostMaintenancePolicy: ClusterNodePoolNodeConfigHostMaintenancePolicy? = null, val imageType: String? = null, val kubeletConfig: ClusterNodePoolNodeConfigKubeletConfig? = null, val labels: Map<String, String>? = null, val linuxNodeConfig: ClusterNodePoolNodeConfigLinuxNodeConfig? = null, val localNvmeSsdBlockConfig: ClusterNodePoolNodeConfigLocalNvmeSsdBlockConfig? = null, val localSsdCount: Int? = null, val loggingVariant: String? = null, val machineType: String? = null, val metadata: Map<String, String>? = null, val minCpuPlatform: String? = null, val nodeGroup: String? = null, val oauthScopes: List<String>? = null, val preemptible: Boolean? = null, val reservationAffinity: ClusterNodePoolNodeConfigReservationAffinity? = null, val resourceLabels: Map<String, String>? = null, val resourceManagerTags: Map<String, String>? = null, val sandboxConfig: ClusterNodePoolNodeConfigSandboxConfig? = null, val secondaryBootDisks: List<ClusterNodePoolNodeConfigSecondaryBootDisk>? = null, val serviceAccount: String? = null, val shieldedInstanceConfig: ClusterNodePoolNodeConfigShieldedInstanceConfig? = null, val soleTenantConfig: ClusterNodePoolNodeConfigSoleTenantConfig? = null, val spot: Boolean? = null, val tags: List<String>? = null, val taints: List<ClusterNodePoolNodeConfigTaint>? = null, val workloadMetadataConfig: ClusterNodePoolNodeConfigWorkloadMetadataConfig? = null)

Constructors

Link copied to clipboard
constructor(advancedMachineFeatures: ClusterNodePoolNodeConfigAdvancedMachineFeatures? = null, bootDiskKmsKey: String? = null, confidentialNodes: ClusterNodePoolNodeConfigConfidentialNodes? = null, containerdConfig: ClusterNodePoolNodeConfigContainerdConfig? = null, diskSizeGb: Int? = null, diskType: String? = null, effectiveTaints: List<ClusterNodePoolNodeConfigEffectiveTaint>? = null, enableConfidentialStorage: Boolean? = null, ephemeralStorageConfig: ClusterNodePoolNodeConfigEphemeralStorageConfig? = null, ephemeralStorageLocalSsdConfig: ClusterNodePoolNodeConfigEphemeralStorageLocalSsdConfig? = null, fastSocket: ClusterNodePoolNodeConfigFastSocket? = null, gcfsConfig: ClusterNodePoolNodeConfigGcfsConfig? = null, guestAccelerators: List<ClusterNodePoolNodeConfigGuestAccelerator>? = null, gvnic: ClusterNodePoolNodeConfigGvnic? = null, hostMaintenancePolicy: ClusterNodePoolNodeConfigHostMaintenancePolicy? = null, imageType: String? = null, kubeletConfig: ClusterNodePoolNodeConfigKubeletConfig? = null, labels: Map<String, String>? = null, linuxNodeConfig: ClusterNodePoolNodeConfigLinuxNodeConfig? = null, localNvmeSsdBlockConfig: ClusterNodePoolNodeConfigLocalNvmeSsdBlockConfig? = null, localSsdCount: Int? = null, loggingVariant: String? = null, machineType: String? = null, metadata: Map<String, String>? = null, minCpuPlatform: String? = null, nodeGroup: String? = null, oauthScopes: List<String>? = null, preemptible: Boolean? = null, reservationAffinity: ClusterNodePoolNodeConfigReservationAffinity? = null, resourceLabels: Map<String, String>? = null, resourceManagerTags: Map<String, String>? = null, sandboxConfig: ClusterNodePoolNodeConfigSandboxConfig? = null, secondaryBootDisks: List<ClusterNodePoolNodeConfigSecondaryBootDisk>? = null, serviceAccount: String? = null, shieldedInstanceConfig: ClusterNodePoolNodeConfigShieldedInstanceConfig? = null, soleTenantConfig: ClusterNodePoolNodeConfigSoleTenantConfig? = null, spot: Boolean? = null, tags: List<String>? = null, taints: List<ClusterNodePoolNodeConfigTaint>? = null, workloadMetadataConfig: ClusterNodePoolNodeConfigWorkloadMetadataConfig? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Specifies options for controlling advanced machine features. Structure is documented below.

Link copied to clipboard
val bootDiskKmsKey: String? = null

The Customer Managed Encryption Key used to encrypt the boot disk attached to each node in the node pool. This should be of the form projects/KEY_PROJECT_ID/locations/LOCATION/keyRings/RING_NAME/cryptoKeys/KEY_NAME. For more information about protecting resources with Cloud KMS Keys please see: https://cloud.google.com/compute/docs/disks/customer-managed-encryption

Link copied to clipboard

Configuration for Confidential Nodes feature. Structure is documented below.

Link copied to clipboard

Parameters to customize containerd runtime. Structure is documented below.

Link copied to clipboard
val diskSizeGb: Int? = null

Size of the disk attached to each node, specified in GB. The smallest allowed disk size is 10GB. Defaults to 100GB.

Link copied to clipboard
val diskType: String? = null

Type of the disk attached to each node (e.g. 'pd-standard', 'pd-balanced' or 'pd-ssd'). If unspecified, the default disk type is 'pd-standard'

Link copied to clipboard

List of kubernetes taints applied to each node. Structure is documented above.

Link copied to clipboard

Enabling Confidential Storage will create boot disk with confidential mode. It is disabled by default.

Link copied to clipboard

Parameters for the ephemeral storage filesystem. If unspecified, ephemeral storage is backed by the boot disk. Structure is documented below.

Link copied to clipboard

Parameters for the ephemeral storage filesystem. If unspecified, ephemeral storage is backed by the boot disk. Structure is documented below.

Link copied to clipboard

Parameters for the NCCL Fast Socket feature. If unspecified, NCCL Fast Socket will not be enabled on the node pool. Node Pool must enable gvnic. GKE version 1.25.2-gke.1700 or later. Structure is documented below.

Link copied to clipboard

Parameters for the Google Container Filesystem (GCFS). If unspecified, GCFS will not be enabled on the node pool. When enabling this feature you must specify image_type = "COS_CONTAINERD" and node_version from GKE versions 1.19 or later to use it. For GKE versions 1.19, 1.20, and 1.21, the recommended minimum node_version would be 1.19.15-gke.1300, 1.20.11-gke.1300, and 1.21.5-gke.1300 respectively. A machine_type that has more than 16 GiB of memory is also recommended. GCFS must be enabled in order to use image streaming. Structure is documented below.

Link copied to clipboard

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

Link copied to clipboard

Google Virtual NIC (gVNIC) is a virtual network interface. Installing the gVNIC driver allows for more efficient traffic transmission across the Google network infrastructure. gVNIC is an alternative to the virtIO-based ethernet driver. GKE nodes must use a Container-Optimized OS node image. GKE node version 1.15.11-gke.15 or later Structure is documented below.

Link copied to clipboard

The maintenance policy for the hosts on which the GKE VMs run on.

Link copied to clipboard
val imageType: String? = null

The image type to use for this node. Note that changing the image type will delete and recreate all nodes in the node pool.

Link copied to clipboard

Kubelet configuration, currently supported attributes can be found here. Structure is documented below.

Link copied to clipboard
val labels: Map<String, String>? = null

The Kubernetes labels (key/value pairs) to be applied to each node. The kubernetes.io/ and k8s.io/ prefixes are reserved by Kubernetes Core components and cannot be specified.

Link copied to clipboard

Parameters that can be configured on Linux nodes. Structure is documented below.

Link copied to clipboard

Parameters for the local NVMe SSDs. Structure is documented below.

Link copied to clipboard
val localSsdCount: Int? = null

The amount of local SSD disks that will be attached to each cluster node. Defaults to 0.

Link copied to clipboard
val loggingVariant: String? = null

Parameter for specifying the type of logging agent used in a node pool. This will override any cluster-wide default value. Valid values include DEFAULT and MAX_THROUGHPUT. See Increasing logging agent throughput for more information.

Link copied to clipboard
val machineType: String? = null

The name of a Google Compute Engine machine type. Defaults to e2-medium. To create a custom machine type, value should be set as specified here.

Link copied to clipboard
val metadata: Map<String, String>? = null

The metadata key/value pairs assigned to instances in the cluster. From GKE 1.12 onwards, disable-legacy-endpoints is set to true by the API; if metadata is set but that default value is not included, the provider will attempt to unset the value. To avoid this, set the value in your config.

Link copied to clipboard
val minCpuPlatform: String? = null

Minimum CPU platform to be used by this instance. The instance may be scheduled on the specified or newer CPU platform. Applicable values are the friendly names of CPU platforms, such as Intel Haswell. See the official documentation for more information.

Link copied to clipboard
val nodeGroup: String? = null

Setting this field will assign instances of this pool to run on the specified node group. This is useful for running workloads on sole tenant nodes.

Link copied to clipboard
val oauthScopes: List<String>? = null

The set of Google API scopes to be made available on all of the node VMs under the "default" service account. Use the "https://www.googleapis.com/auth/cloud-platform" scope to grant access to all APIs. It is recommended that you set service_account to a non-default service account and grant IAM roles to that service account for only the resources that it needs. See the official documentation for information on migrating off of legacy access scopes.

Link copied to clipboard
val preemptible: Boolean? = null

A boolean that represents whether or not the underlying node VMs are preemptible. See the official documentation for more information. Defaults to false.

Link copied to clipboard

The configuration of the desired reservation which instances could take capacity from. Structure is documented below.

Link copied to clipboard

The GCP labels (key/value pairs) to be applied to each node. Refer here for how these labels are applied to clusters, node pools and nodes.

Link copied to clipboard

A map of resource manager tag keys and values to be attached to the nodes for managing Compute Engine firewalls using Network Firewall Policies. Tags must be according to specifications found here. A maximum of 5 tag key-value pairs can be specified. Existing tags will be replaced with new values. Tags must be in one of the following formats (KEY=VALUE) 1. tagKeys/{tag_key_id}=tagValues/{tag_value_id} 2. {org_id}/{tag_key_name}={tag_value_name} 3. {project_id}/{tag_key_name}={tag_value_name}.

Link copied to clipboard

Sandbox configuration for this node.

Link copied to clipboard

Parameters for secondary boot disks to preload container images and data on new nodes. Structure is documented below. gcfs_config must be enabled=true for this feature to work. min_master_version must also be set to use GKE 1.28.3-gke.106700 or later versions.

Link copied to clipboard
val serviceAccount: String? = null

The service account to be used by the Node VMs. If not specified, the "default" service account is used.

Link copied to clipboard

Shielded Instance options. Structure is documented below.

Link copied to clipboard

Allows specifying multiple node affinities useful for running workloads on sole tenant nodes. node_affinity structure is documented below.

Link copied to clipboard
val spot: Boolean? = null

A boolean that represents whether the underlying node VMs are spot. See the official documentation for more information. Defaults to false.

Link copied to clipboard
val tags: List<String>? = null

The list of instance tags applied to all nodes. Tags are used to identify valid sources or targets for network firewalls.

Link copied to clipboard

A list of Kubernetes taints to apply to nodes. GKE's API can only set this field on cluster creation. However, GKE will add taints to your nodes if you enable certain features such as GPUs. If this field is set, any diffs on this field will cause the provider to recreate the underlying resource. Taint values can be updated safely in Kubernetes (eg. through kubectl), and it's recommended that you do not use this field to manage taints. If you do, lifecycle.ignore_changes is recommended. Structure is documented below.

Link copied to clipboard

Metadata configuration to expose to workloads on the node pool. Structure is documented below.