DataprocCluster
| Property | Value |
|---|---|
| Google Cloud Service Name | Dataproc |
| Google Cloud Service Documentation | /dataproc/docs/ |
| Google Cloud REST Resource Name | v1.projects.regions.clusters |
| Google Cloud REST Resource Documentation | /dataproc/docs/reference/rest/v1/projects.regions.clusters |
| Config Connector Resource Short Names | dataproccluster gcpdataproccluster gcpdataprocclusters |
| Config Connector Service Name | dataproc.googleapis.com |
| Config Connector Resource Fully Qualified Name | dataprocclusters.dataproc.cnrm.cloud.google.com |
| Can Be Referenced by IAMPolicy/IAMPolicyMember | Yes |
| IAMPolicy/IAMPartialPolicy Supports Conditions | Yes |
| IAMPolicyMember Supports Conditions | No |
| Supports IAM Audit Configs | No |
| IAM External Reference Format |
projects/{{project}}/regions/{{location}}/clusters/{{name}} |
| Config Connector Default Average Reconcile Interval In Seconds | 600 |
Custom Resource Definition Properties
Spec
Schema
config:
autoscalingConfig:
policyRef:
external: string
name: string
namespace: string
dataprocMetricConfig:
metrics:
- metricOverrides:
- string
metricSource: string
encryptionConfig:
gcePdKmsKeyRef:
external: string
name: string
namespace: string
endpointConfig:
enableHttpPortAccess: boolean
gceClusterConfig:
confidentialInstanceConfig:
enableConfidentialCompute: boolean
internalIPOnly: boolean
metadata:
string: string
networkRef:
external: string
name: string
namespace: string
nodeGroupAffinity:
nodeGroupRef:
external: string
name: string
namespace: string
privateIPv6GoogleAccess: string
reservationAffinity:
consumeReservationType: string
key: string
values:
- string
serviceAccountRef:
external: string
name: string
namespace: string
serviceAccountScopes:
- string
shieldedInstanceConfig:
enableIntegrityMonitoring: boolean
enableSecureBoot: boolean
enableVtpm: boolean
subnetworkRef:
external: string
name: string
namespace: string
tags:
- string
zone: string
initializationActions:
- executableFile: string
executionTimeout: string
lifecycleConfig:
autoDeleteTime: string
autoDeleteTtl: string
idleDeleteTtl: string
masterConfig:
accelerators:
- acceleratorCount: integer
acceleratorType: string
diskConfig:
bootDiskSizeGb: integer
bootDiskType: string
localSsdInterface: string
numLocalSsds: integer
imageRef:
external: string
name: string
namespace: string
machineType: string
minCpuPlatform: string
numInstances: integer
preemptibility: string
metastoreConfig:
dataprocMetastoreServiceRef:
external: string
name: string
namespace: string
secondaryWorkerConfig:
accelerators:
- acceleratorCount: integer
acceleratorType: string
diskConfig:
bootDiskSizeGb: integer
bootDiskType: string
localSsdInterface: string
numLocalSsds: integer
imageRef:
external: string
name: string
namespace: string
machineType: string
minCpuPlatform: string
numInstances: integer
preemptibility: string
securityConfig:
identityConfig:
userServiceAccountMapping:
string: string
kerberosConfig:
crossRealmTrustAdminServer: string
crossRealmTrustKdc: string
crossRealmTrustRealm: string
crossRealmTrustSharedPassword: string
enableKerberos: boolean
kdcDbKey: string
keyPassword: string
keystore: string
keystorePassword: string
kmsKeyRef:
external: string
name: string
namespace: string
realm: string
rootPrincipalPassword: string
tgtLifetimeHours: integer
truststore: string
truststorePassword: string
softwareConfig:
imageVersion: string
optionalComponents:
- string
properties:
string: string
stagingBucketRef:
external: string
name: string
namespace: string
tempBucketRef:
external: string
name: string
namespace: string
workerConfig:
accelerators:
- acceleratorCount: integer
acceleratorType: string
diskConfig:
bootDiskSizeGb: integer
bootDiskType: string
localSsdInterface: string
numLocalSsds: integer
imageRef:
external: string
name: string
namespace: string
machineType: string
minCpuPlatform: string
numInstances: integer
preemptibility: string
location: string
projectRef:
external: string
name: string
namespace: string
resourceID: string
virtualClusterConfig:
auxiliaryServicesConfig:
metastoreConfig:
dataprocMetastoreServiceRef:
external: string
name: string
namespace: string
sparkHistoryServerConfig:
dataprocClusterRef:
external: string
name: string
namespace: string
kubernetesClusterConfig:
gkeClusterConfig:
gkeClusterTargetRef:
external: string
name: string
namespace: string
nodePoolTarget:
- nodePoolConfig:
autoscaling:
maxNodeCount: integer
minNodeCount: integer
config:
accelerators:
- acceleratorCount: integer
acceleratorType: string
gpuPartitionSize: string
bootDiskKmsKey: string
ephemeralStorageConfig:
localSsdCount: integer
localSsdCount: integer
machineType: string
minCpuPlatform: string
preemptible: boolean
spot: boolean
locations:
- string
nodePoolRef:
external: string
name: string
namespace: string
roles:
- string
kubernetesNamespace: string
kubernetesSoftwareConfig:
componentVersion:
string: string
properties:
string: string
stagingBucketRef:
external: string
name: string
namespace: string
| Fields | |
|---|---|
|
Optional |
The cluster config. Note that Dataproc may set default values, and values may change when clusters are updated. |
|
Optional |
Immutable. Optional. Autoscaling config for the policy associated with the cluster. Cluster does not autoscale if this field is unset. |
|
Optional |
Immutable. |
|
Optional |
A reference to an externally managed DataprocAutoscalingPolicy resource. Should be in the format "projects/{{projectID}}/regions/{{region}}/autoscalingPolicies/{{policyID}}". |
|
Optional |
The name of a DataprocAutoscalingPolicy resource. |
|
Optional |
The namespace of a DataprocAutoscalingPolicy resource. |
|
Optional |
Immutable. Optional. The config for Dataproc metrics. |
|
Required* |
Immutable. Required. Metrics sources to enable. |
|
Required* |
|
|
Optional |
Immutable. Optional. Specify one or more [available OSS metrics] (https://cloud.google.com/dataproc/docs/guides/monitoring#available_oss_metrics) to collect for the metric course (for the `SPARK` metric source, any [Spark metric] (https://spark.apache.org/docs/latest/monitoring.html#metrics) can be specified). Provide metrics in the following format: `METRIC_SOURCE:INSTANCE:GROUP:METRIC` Use camelcase as appropriate. Examples: ``` yarn:ResourceManager:QueueMetrics:AppsCompleted spark:driver:DAGScheduler:job.allJobs sparkHistoryServer:JVM:Memory:NonHeapMemoryUsage.committed hiveserver2:JVM:Memory:NonHeapMemoryUsage.used ``` Notes: * Only the specified overridden metrics will be collected for the metric source. For example, if one or more `spark:executive` metrics are listed as metric overrides, other `SPARK` metrics will not be collected. The collection of the default metrics for other OSS metric sources is unaffected. For example, if both `SPARK` and `YARN` metric sources are enabled, and overrides are provided for Spark metrics only, all default YARN metrics will be collected. |
|
Optional |
|
|
Required* |
Immutable. Required. Default metrics are collected unless `metricOverrides` are specified for the metric source (see [Available OSS metrics] (https://cloud.google.com/dataproc/docs/guides/monitoring#available_oss_metrics) for more information). Possible values: METRIC_SOURCE_UNSPECIFIED, MONITORING_AGENT_DEFAULTS, HDFS, SPARK, YARN, SPARK_HISTORY_SERVER, HIVESERVER2 |
|
Optional |
Immutable. Optional. Encryption config for the cluster. |
|
Optional |
Immutable. |
|
Optional |
A reference to an externally managed KMSCryptoKey. Should be in the format `projects/[kms_project_id]/locations/[region]/keyRings/[key_ring_id]/cryptoKeys/[key]`. |
|
Optional |
The `name` of a `KMSCryptoKey` resource. |
|
Optional |
The `namespace` of a `KMSCryptoKey` resource. |
|
Optional |
Immutable. Optional. Port access config for the cluster. |
|
Optional |
Immutable. Optional. If true, enable http access to specific ports on the cluster from external sources. Defaults to false. |
|
Optional |
Immutable. Optional. Compute Engine config settings for a cluster. |
|
Optional |
Immutable. Optional. Confidential Instance Config for clusters using [Confidential VMs](https://cloud.google.com/compute/confidential-vm/docs). |
|
Optional |
Immutable. Optional. Defines whether the instance should have confidential compute enabled. |
|
Optional |
Immutable. Optional. If true, all instances in the cluster will only have internal IP addresses. By default, clusters are not restricted to internal IP addresses, and will have ephemeral external IP addresses assigned to each instance. This `internal_ip_only` restriction can only be enabled for subnetwork enabled networks, and all off-cluster dependencies must be configured to be accessible without external IP addresses. |
|
Optional |
Immutable. The Compute Engine metadata entries to add to all instances (see [Project and instance metadata](https://cloud.google.com/compute/docs/storing-retrieving-metadata#project_and_instance_metadata)). |
|
Optional |
Immutable. |
|
Optional |
A reference to an externally managed ComputeNetwork resource. Should be in the format "projects/{{projectID}}/global/networks/{{networkID}}". |
|
Optional |
The name of a ComputeNetwork resource. |
|
Optional |
The namespace of a ComputeNetwork resource. |
|
Optional |
Immutable. Optional. Node Group Affinity for sole-tenant clusters. |
|
Required* |
Immutable. |
|
Optional |
A reference to an externally managed ContainerNodePool resource. Should be in the format "projects/{{projectID}}/locations/{{location}}/clusters/{{clusterID}}/nodePools/{{nodePoolID}}" or "projects/{{projectID}}/zones/{{zone}}/clusters/{{clusterID}}/nodePools/{{nodePoolID}}". |
|
Optional |
The name of a ContainerNodePool resource. |
|
Optional |
The namespace of a ContainerNodePool resource. |
|
Optional |
Immutable. Optional. The type of IPv6 access for a cluster. Possible values: PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED, INHERIT_FROM_SUBNETWORK, OUTBOUND, BIDIRECTIONAL |
|
Optional |
Immutable. Optional. Reservation Affinity for consuming Zonal reservation. |
|
Optional |
Immutable. Optional. Type of reservation to consume Possible values: TYPE_UNSPECIFIED, NO_RESERVATION, ANY_RESERVATION, SPECIFIC_RESERVATION |
|
Optional |
Immutable. Optional. Corresponds to the label key of reservation resource. |
|
Optional |
Immutable. Optional. Corresponds to the label values of reservation resource. |
|
Optional |
|
|
Optional |
Immutable. |
|
Optional |
The `email` field of an `IAMServiceAccount` resource. |
|
Optional |
Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names |
|
Optional |
Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ |
|
Optional |
Immutable. Optional. The URIs of service account scopes to be included in Compute Engine instances. The following base set of scopes is always included: * https://www.googleapis.com/auth/cloud.useraccounts.readonly * https://www.googleapis.com/auth/devstorage.read_write * https://www.googleapis.com/auth/logging.write If no scopes are specified, the following defaults are also provided: * https://www.googleapis.com/auth/bigquery * https://www.googleapis.com/auth/bigtable.admin.table * https://www.googleapis.com/auth/bigtable.data * https://www.googleapis.com/auth/devstorage.full_control |
|
Optional |
|
|
Optional |
Immutable. Optional. Shielded Instance Config for clusters using [Compute Engine Shielded VMs](https://cloud.google.com/security/shielded-cloud/shielded-vm). |
|
Optional |
Immutable. Optional. Defines whether instances have integrity monitoring enabled. |
|
Optional |
Immutable. Optional. Defines whether instances have Secure Boot enabled. |
|
Optional |
Immutable. Optional. Defines whether instances have the vTPM enabled. |
|
Optional |
Immutable. |
|
Optional |
A reference to an externally managed ComputeSubnetwork resource. Should be in the format "projects/{{projectID}}/regions/{{region}}/subnetworks/{{subnetworkID}}". |
|
Optional |
The name of a ComputeSubnetwork resource. |
|
Optional |
The namespace of a ComputeSubnetwork resource. |
|
Optional |
Immutable. The Compute Engine tags to add to all instances (see [Tagging instances](https://cloud.google.com/compute/docs/label-or-tag-resources#tags)). |
|
Optional |
|
|
Optional |
Immutable. Optional. The zone where the Compute Engine cluster will be located. On a create request, it is required in the "global" region. If omitted in a non-global Dataproc region, the service will pick a zone in the corresponding Compute Engine region. On a get request, zone will always be present. A full URL, partial URI, or short name are valid. Examples: * `https://www.googleapis.com/compute/v1/projects/[project_id]/zones/[zone]` * `projects/[project_id]/zones/[zone]` * `us-central1-f` |
|
Optional |
Immutable. Optional. Commands to run on each node after the cluster is configured. |
|
Optional |
|
|
Required* |
Immutable. Required. Cloud Storage URI of executable file. |
|
Optional |
Immutable. Optional. Amount of time executable has to complete. Default is 10 minutes (see JSON representation of [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)). Cluster creation fails with an explanatory error message (the name of the executable that caused the error and the exceeded timeout period) if the executable is not completed at end of the timeout period. |
|
Optional |
Immutable. Optional. Lifecycle config for the cluster. |
|
Optional |
Immutable. Optional. The time when cluster will be auto-deleted (see JSON representation of [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)). |
|
Optional |
Immutable. Optional. The lifetime duration of cluster. The cluster will be auto-deleted at the end of this period. Minimum value is 10 minutes; maximum value is 14 days (see JSON representation of [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)). |
|
Optional |
Immutable. Optional. The duration to keep the cluster alive while idling (when no jobs are running). Passing this threshold will cause the cluster to be deleted. Minimum value is 5 minutes; maximum value is 14 days (see JSON representation of [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)). |
|
Optional |
Immutable. Optional. The Compute Engine config settings for the master instance in a cluster. |
|
Optional |
Immutable. Optional. The Compute Engine accelerator configuration for these instances. |
|
Optional |
|
|
Optional |
Immutable. The number of accelerator cards exposed to an instance. |
|
Optional |
Immutable. The accelerator type resource namename (see GPUs on Compute Engine). |
|
Optional |
Immutable. Optional. Disk option config settings. |
|
Optional |
Immutable. Optional. Size in GB of the boot disk (default is 500GB). |
|
Optional |
Immutable. Optional. Type of the boot disk (default is "pd-standard"). Valid values: "pd-balanced" (Persistent Disk Balanced Solid State Drive), "pd-ssd" (Persistent Disk Solid State Drive), or "pd-standard" (Persistent Disk Hard Disk Drive). See [Disk types](https://cloud.google.com/compute/docs/disks#disk-types). |
|
Optional |
Immutable. Optional. Interface type of local SSDs (default is "scsi"). Valid values: "scsi" (Small Computer System Interface), "nvme" (Non-Volatile Memory Express). See [local SSD performance](https://cloud.google.com/compute/docs/disks/local-ssd#performance). |
|
Optional |
Immutable. Optional. Number of attached SSDs, from 0 to 4 (default is 0). If SSDs are not attached, the boot disk is used to store runtime logs and [HDFS](https://hadoop.apache.org/docs/r1.2.1/hdfs_user_guide.html) data. If one or more SSDs are attached, this runtime bulk data is spread across them, and the boot disk contains only basic config and installed binaries. |
|
Optional |
Immutable. |
|
Optional |
A reference to an externally managed ComputeImage resource. Should be in the format "projects/{{project}}/global/images/{{name}}" or "projects/{{project}}/global/images/family/{{family}}". |
|
Optional |
The name of a ComputeImage resource. |
|
Optional |
The namespace of a ComputeImage resource. |
|
Optional |
Immutable. Optional. The Compute Engine machine type used for cluster instances. A full URL, partial URI, or short name are valid. Examples: * `https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2` * `projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2` * `n1-standard-2` **Auto Zone Exception**: If you are using the Dataproc [Auto Zone Placement](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement) feature, you must use the short name of the machine type resource, for example, `n1-standard-2`. |
|
Optional |
Immutable. Optional. Specifies the minimum cpu platform for the Instance Group. See [Dataproc -> Minimum CPU Platform](https://cloud.google.com/dataproc/docs/concepts/compute/dataproc-min-cpu). |
|
Optional |
Immutable. Optional. The number of VM instances in the instance group. For [HA cluster](/dataproc/docs/concepts/configuring-clusters/high-availability) [master_config](#FIELDS.master_config) groups, **must be set to 3**. For standard cluster [master_config](#FIELDS.master_config) groups, **must be set to 1**. |
|
Optional |
Immutable. Optional. Specifies the preemptibility of the instance group. The default value for master and worker groups is `NON_PREEMPTIBLE`. This default cannot be changed. The default value for secondary instances is `PREEMPTIBLE`. Possible values: PREEMPTIBILITY_UNSPECIFIED, NON_PREEMPTIBLE, PREEMPTIBLE |
|
Optional |
Immutable. Optional. Metastore config for the cluster. |
|
Required* |
Immutable. |
|
Optional |
A reference to an externally managed DataprocMetastoreService resource. Should be in the format "projects/{{projectID}}/locations/{{location}}/services/{{serviceID}}". |
|
Optional |
The name of a DataprocMetastoreService resource. |
|
Optional |
The namespace of a DataprocMetastoreService resource. |
|
Optional |
Immutable. Optional. The Compute Engine config settings for secondary worker instances in a cluster. |
|
Optional |
Immutable. Optional. The Compute Engine accelerator configuration for these instances. |
|
Optional |
|
|
Optional |
Immutable. The number of accelerator cards exposed to an instance. |
|
Optional |
Immutable. The accelerator type resource namename (see GPUs on Compute Engine). |
|
Optional |
Immutable. Optional. Disk option config settings. |
|
Optional |
Immutable. Optional. Size in GB of the boot disk (default is 500GB). |
|
Optional |
Immutable. Optional. Type of the boot disk (default is "pd-standard"). Valid values: "pd-balanced" (Persistent Disk Balanced Solid State Drive), "pd-ssd" (Persistent Disk Solid State Drive), or "pd-standard" (Persistent Disk Hard Disk Drive). See [Disk types](https://cloud.google.com/compute/docs/disks#disk-types). |
|
Optional |
Immutable. Optional. Interface type of local SSDs (default is "scsi"). Valid values: "scsi" (Small Computer System Interface), "nvme" (Non-Volatile Memory Express). See [local SSD performance](https://cloud.google.com/compute/docs/disks/local-ssd#performance). |
|
Optional |
Immutable. Optional. Number of attached SSDs, from 0 to 4 (default is 0). If SSDs are not attached, the boot disk is used to store runtime logs and [HDFS](https://hadoop.apache.org/docs/r1.2.1/hdfs_user_guide.html) data. If one or more SSDs are attached, this runtime bulk data is spread across them, and the boot disk contains only basic config and installed binaries. |
|
Optional |
Immutable. |
|
Optional |
A reference to an externally managed ComputeImage resource. Should be in the format "projects/{{project}}/global/images/{{name}}" or "projects/{{project}}/global/images/family/{{family}}". |
|
Optional |
The name of a ComputeImage resource. |
|
Optional |
The namespace of a ComputeImage resource. |
|
Optional |
Immutable. Optional. The Compute Engine machine type used for cluster instances. A full URL, partial URI, or short name are valid. Examples: * `https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2` * `projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2` * `n1-standard-2` **Auto Zone Exception**: If you are using the Dataproc [Auto Zone Placement](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement) feature, you must use the short name of the machine type resource, for example, `n1-standard-2`. |
|
Optional |
Immutable. Optional. Specifies the minimum cpu platform for the Instance Group. See [Dataproc -> Minimum CPU Platform](https://cloud.google.com/dataproc/docs/concepts/compute/dataproc-min-cpu). |
|
Optional |
Immutable. Optional. The number of VM instances in the instance group. For [HA cluster](/dataproc/docs/concepts/configuring-clusters/high-availability) [master_config](#FIELDS.master_config) groups, **must be set to 3**. For standard cluster [master_config](#FIELDS.master_config) groups, **must be set to 1**. |
|
Optional |
Immutable. Optional. Specifies the preemptibility of the instance group. The default value for master and worker groups is `NON_PREEMPTIBLE`. This default cannot be changed. The default value for secondary instances is `PREEMPTIBLE`. Possible values: PREEMPTIBILITY_UNSPECIFIED, NON_PREEMPTIBLE, PREEMPTIBLE |
|
Optional |
Immutable. Optional. Security config for the cluster. |
|
Optional |
Optional. Identity related configuration, including service account based secure multi-tenancy user mappings. |
|
Required* |
Required. Map of user to service account. |
|
Optional |
Immutable. Optional. Kerberos related configuration. |
|
Optional |
Immutable. Optional. The admin server (IP or hostname) for the remote trusted realm in a cross realm trust relationship. |
|
Optional |
Immutable. Optional. The KDC (IP or hostname) for the remote trusted realm in a cross realm trust relationship. |
|
Optional |
Immutable. Optional. The remote realm the Dataproc on-cluster KDC will trust, should the user enable cross realm trust. |
|
Optional |
Immutable. Optional. The Cloud Storage URI of a KMS encrypted file containing the shared password between the on-cluster Kerberos realm and the remote trusted realm, in a cross realm trust relationship. |
|
Optional |
Immutable. Optional. Flag to indicate whether to Kerberize the cluster (default: false). Set this field to true to enable Kerberos on a cluster. |
|
Optional |
Immutable. Optional. The Cloud Storage URI of a KMS encrypted file containing the master key of the KDC database. |
|
Optional |
Immutable. Optional. The Cloud Storage URI of a KMS encrypted file containing the password to the user provided key. For the self-signed certificate, this password is generated by Dataproc. |
|
Optional |
Immutable. Optional. The Cloud Storage URI of the keystore file used for SSL encryption. If not provided, Dataproc will provide a self-signed certificate. |
|
Optional |
Immutable. Optional. The Cloud Storage URI of a KMS encrypted file containing the password to the user provided keystore. For the self-signed certificate, this password is generated by Dataproc. |
|
Optional |
Immutable. |
|
Optional |
A reference to an externally managed KMSCryptoKey. Should be in the format `projects/[kms_project_id]/locations/[region]/keyRings/[key_ring_id]/cryptoKeys/[key]`. |
|
Optional |
The `name` of a `KMSCryptoKey` resource. |
|
Optional |
The `namespace` of a `KMSCryptoKey` resource. |
|
Optional |
Immutable. Optional. The name of the on-cluster Kerberos realm. If not specified, the uppercased domain of hostnames will be the realm. |
|
Optional |
Immutable. Optional. The Cloud Storage URI of a KMS encrypted file containing the root principal password. |
|
Optional |
Immutable. Optional. The lifetime of the ticket granting ticket, in hours. If not specified, or user specifies 0, then default value 10 will be used. |
|
Optional |
Immutable. Optional. The Cloud Storage URI of the truststore file used for SSL encryption. If not provided, Dataproc will provide a self-signed certificate. |
|
Optional |
Immutable. Optional. The Cloud Storage URI of a KMS encrypted file containing the password to the user provided truststore. For the self-signed certificate, this password is generated by Dataproc. |
|
Optional |
Immutable. Optional. Software config for the cluster. |
|
Optional |
Immutable. Optional. The version of software inside the cluster. It must be one of the supported [Dataproc Versions](https://cloud.google.com/dataproc/docs/concepts/versioning/dataproc-versions#supported_dataproc_versions), such as "1.2" (including a subminor version, such as "1.2.29"), or the ["preview" version](https://cloud.google.com/dataproc/docs/concepts/versioning/dataproc-versions#other_versions). If unspecified, it defaults to the latest Debian version. |
|
Optional |
Immutable. Optional. The set of components to activate on the cluster. |
|
Optional |
|
|
Optional |
Immutable. Optional. The properties to set on daemon config files. Property keys are specified in `prefix:property` format, for example `core:hadoop.tmp.dir`. The following are supported prefixes and their mappings: * capacity-scheduler: `capacity-scheduler.xml` * core: `core-site.xml` * distcp: `distcp-default.xml` * hdfs: `hdfs-site.xml` * hive: `hive-site.xml` * mapred: `mapred-site.xml` * pig: `pig.properties` * spark: `spark-defaults.conf` * yarn: `yarn-site.xml` For more information, see [Cluster properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties). |
|
Optional |
Immutable. |
|
Optional |
A reference to an externally managed StorageBucket resource. Should be in the format "projects/{{projectID}}/buckets/{{bucketID}}". |
|
Optional |
The name of a StorageBucket resource. |
|
Optional |
The namespace of a StorageBucket resource. |
|
Optional |
Immutable. |
|
Optional |
A reference to an externally managed StorageBucket resource. Should be in the format "projects/{{projectID}}/buckets/{{bucketID}}". |
|
Optional |
The name of a StorageBucket resource. |
|
Optional |
The namespace of a StorageBucket resource. |
|
Optional |
Immutable. Optional. The Compute Engine config settings for worker instances in a cluster. |
|
Optional |
Immutable. Optional. The Compute Engine accelerator configuration for these instances. |
|
Optional |
|
|
Optional |
Immutable. The number of accelerator cards exposed to an instance. |
|
Optional |
Immutable. The accelerator type resource namename (see GPUs on Compute Engine). |
|
Optional |
Immutable. Optional. Disk option config settings. |
|
Optional |
Immutable. Optional. Size in GB of the boot disk (default is 500GB). |
|
Optional |
Immutable. Optional. Type of the boot disk (default is "pd-standard"). Valid values: "pd-balanced" (Persistent Disk Balanced Solid State Drive), "pd-ssd" (Persistent Disk Solid State Drive), or "pd-standard" (Persistent Disk Hard Disk Drive). See [Disk types](https://cloud.google.com/compute/docs/disks#disk-types). |
|
Optional |
Immutable. Optional. Interface type of local SSDs (default is "scsi"). Valid values: "scsi" (Small Computer System Interface), "nvme" (Non-Volatile Memory Express). See [local SSD performance](https://cloud.google.com/compute/docs/disks/local-ssd#performance). |
|
Optional |
Immutable. Optional. Number of attached SSDs, from 0 to 4 (default is 0). If SSDs are not attached, the boot disk is used to store runtime logs and [HDFS](https://hadoop.apache.org/docs/r1.2.1/hdfs_user_guide.html) data. If one or more SSDs are attached, this runtime bulk data is spread across them, and the boot disk contains only basic config and installed binaries. |
|
Optional |
Immutable. |
|
Optional |
A reference to an externally managed ComputeImage resource. Should be in the format "projects/{{project}}/global/images/{{name}}" or "projects/{{project}}/global/images/family/{{family}}". |
|
Optional |
The name of a ComputeImage resource. |
|
Optional |
The namespace of a ComputeImage resource. |
|
Optional |
Immutable. Optional. The Compute Engine machine type used for cluster instances. A full URL, partial URI, or short name are valid. Examples: * `https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2` * `projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2` * `n1-standard-2` **Auto Zone Exception**: If you are using the Dataproc [Auto Zone Placement](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement) feature, you must use the short name of the machine type resource, for example, `n1-standard-2`. |
|
Optional |
Immutable. Optional. Specifies the minimum cpu platform for the Instance Group. See [Dataproc -> Minimum CPU Platform](https://cloud.google.com/dataproc/docs/concepts/compute/dataproc-min-cpu). |
|
Optional |
Immutable. Optional. The number of VM instances in the instance group. For [HA cluster](/dataproc/docs/concepts/configuring-clusters/high-availability) [master_config](#FIELDS.master_config) groups, **must be set to 3**. For standard cluster [master_config](#FIELDS.master_config) groups, **must be set to 1**. |
|
Optional |
Immutable. Optional. Specifies the preemptibility of the instance group. The default value for master and worker groups is `NON_PREEMPTIBLE`. This default cannot be changed. The default value for secondary instances is `PREEMPTIBLE`. Possible values: PREEMPTIBILITY_UNSPECIFIED, NON_PREEMPTIBLE, PREEMPTIBLE |
|
Required |
Immutable. The location for the resource, usually a Google Cloud region. |
|
Optional |
Immutable. The Project that this resource belongs to. |
|
Optional |
The `projectID` field of a project, when not managed by Config Connector. |
|
Optional |
The `name` field of a `Project` resource. |
|
Optional |
The `namespace` field of a `Project` resource. |
|
Optional |
Immutable. Optional. The name of the resource. Used for creation and acquisition. When unset, the value of `metadata.name` is used as the default. |
|
Optional |
Immutable. Optional. The virtual cluster config is used when creating a Dataproc cluster that does not directly control the underlying compute resources, for example, when creating a [Dataproc-on-GKE cluster](https://cloud.google.com/dataproc/docs/guides/dpgke/dataproc-gke). Dataproc may set default values, and values may change when clusters are updated. Exactly one of config or virtual_cluster_config must be specified. |
|
Optional |
Immutable. Optional. Configuration of auxiliary services used by this cluster. |
|
Optional |
Immutable. Optional. The Hive Metastore configuration for this workload. |
|
Required* |
Immutable. |
|
Optional |
A reference to an externally managed DataprocMetastoreService resource. Should be in the format "projects/{{projectID}}/locations/{{location}}/services/{{serviceID}}". |
|
Optional |
The name of a DataprocMetastoreService resource. |
|
Optional |
The namespace of a DataprocMetastoreService resource. |
|
Optional |
Immutable. Optional. The Spark History Server configuration for the workload. |
|
Optional |
Immutable. |
|
Optional |
A reference to an externally managed DataprocCluster resource. Should be in the format "projects/{{projectID}}/regions/{{region}}/clusters/{{clusterName}}". |
|
Optional |
The name of a DataprocCluster resource. |
|
Optional |
The namespace of a DataprocCluster resource. |
|
Required* |
Immutable. Required. The configuration for running the Dataproc cluster on Kubernetes. |
|
Required* |
Immutable. Required. The configuration for running the Dataproc cluster on GKE. |
|
Optional |
Immutable. |
|
Optional |
The GKE cluster. Valid formats: `projects/{projectID}/locations/{location}/clusters/{clusterID}` `projects/{projectID}/zones/{zone}/clusters/{clusterID}` |
|
Optional |
Name of the project resource. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names */ |
|
Optional |
Namespace of the project resource. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ */ |
|
Optional |
Immutable. Optional. GKE node pools where workloads will be scheduled. At least one node pool must be assigned the `DEFAULT` GkeNodePoolTarget.Role. If a `GkeNodePoolTarget` is not specified, Dataproc constructs a `DEFAULT` `GkeNodePoolTarget`. Each role can be given to only one `GkeNodePoolTarget`. All node pools must have the same location settings. |
|
Optional |
|
|
Optional |
Immutable. Input only. The configuration for the GKE node pool. If specified, Dataproc attempts to create a node pool with the specified shape. If one with the same name already exists, it is verified against all specified fields. If a field differs, the virtual cluster creation will fail. If omitted, any node pool with the specified name is used. If a node pool with the specified name does not exist, Dataproc create a node pool with default values. This is an input only field. It will not be returned by the API. |
|
Optional |
Immutable. Optional. The autoscaler configuration for this node pool. The autoscaler is enabled only when a valid configuration is present. |
|
Optional |
Immutable. The maximum number of nodes in the node pool. Must be >= min_node_count, and must be > 0. **Note:** Quota must be sufficient to scale up the cluster. |
|
Optional |
Immutable. The minimum number of nodes in the node pool. Must be >= 0 and <= max_node_count. |
|
Optional |
Immutable. Optional. The node pool configuration. |
|
Optional |
Immutable. Optional. A list of [hardware accelerators](https://cloud.google.com/compute/docs/gpus) to attach to each node. |
|
Optional |
|
|
Optional |
Immutable. The number of accelerator cards exposed to an instance. |
|
Optional |
Immutable. The accelerator type resource namename (see GPUs on Compute Engine). |
|
Optional |
Immutable. Size of partitions to create on the GPU. Valid values are described in the NVIDIA [mig user guide](https://docs.nvidia.com/datacenter/tesla/mig-user-guide/#partitioning). |
|
Optional |
Immutable. 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. |
|
Optional |
Immutable. Optional. Parameters for the ephemeral storage filesystem. If unspecified, ephemeral storage is backed by the boot disk. |
|
Optional |
Immutable. Number of local SSDs to use to back ephemeral storage. Uses NVMe interfaces. Each local SSD is 375 GB in size. If zero, it means to disable using local SSDs as ephemeral storage. |
|
Optional |
Immutable. 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)). |
|
Optional |
Immutable. Optional. The name of a Compute Engine [machine type](https://cloud.google.com/compute/docs/machine-types). |
|
Optional |
Immutable. 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". |
|
Optional |
Immutable. Optional. Whether the nodes are created as legacy [preemptible VM instances] (https://cloud.google.com/compute/docs/instances/preemptible). 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] (/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). |
|
Optional |
Immutable. 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. Spot VMs do not have a maximum lifetime. Legacy and Spot preemptible nodes cannot be used in a node pool with the `CONTROLLER` [role](/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). |
|
Optional |
Immutable. Optional. The list of Compute Engine [zones](https://cloud.google.com/compute/docs/zones#available) where node pool nodes associated with a Dataproc on GKE virtual cluster will be located. **Note:** All node pools associated with a virtual cluster must be located in the same region as the virtual cluster, and they must be located in the same zone within that region. If a location is not specified during node pool creation, Dataproc on GKE will choose the zone. |
|
Optional |
|
|
Required* |
Immutable. |
|
Optional |
A reference to an externally managed ContainerNodePool resource. Should be in the format "projects/{{projectID}}/locations/{{location}}/clusters/{{clusterID}}/nodePools/{{nodePoolID}}" or "projects/{{projectID}}/zones/{{zone}}/clusters/{{clusterID}}/nodePools/{{nodePoolID}}". |
|
Optional |
The name of a ContainerNodePool resource. |
|
Optional |
The namespace of a ContainerNodePool resource. |
|
Required* |
Immutable. Required. The roles associated with the GKE node pool. |
|
Required* |
|
|
Optional |
Immutable. Optional. A namespace within the Kubernetes cluster to deploy into. If this namespace does not exist, it is created. If it exists, Dataproc verifies that another Dataproc VirtualCluster is not installed into it. If not specified, the name of the Dataproc Cluster is used. |
|
Optional |
Immutable. Optional. The software configuration for this Dataproc cluster running on Kubernetes. |
|
Optional |
Immutable. The components that should be installed in this Dataproc cluster. The key must be a string from the KubernetesComponent enumeration. The value is the version of the software to be installed. At least one entry must be specified. |
|
Optional |
Immutable. The properties to set on daemon config files. Property keys are specified in `prefix:property` format, for example `spark:spark.kubernetes.container.image`. The following are supported prefixes and their mappings: * spark: `spark-defaults.conf` For more information, see [Cluster properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties). |
|
Optional |
Immutable. |
|
Optional |
A reference to an externally managed StorageBucket resource. Should be in the format "projects/{{projectID}}/buckets/{{bucketID}}". |
|
Optional |
The name of a StorageBucket resource. |
|
Optional |
The namespace of a StorageBucket resource. |
* Field is required when parent field is specified
Status
Schema
clusterUuid: string
conditions:
- lastTransitionTime: string
message: string
reason: string
status: string
type: string
config:
endpointConfig:
httpPorts:
string: string
lifecycleConfig:
idleStartTime: string
masterConfig:
instanceNames:
- string
instanceReferences:
- instanceId: string
instanceName: string
publicEciesKey: string
publicKey: string
isPreemptible: boolean
managedGroupConfig:
instanceGroupManagerName: string
instanceTemplateName: string
secondaryWorkerConfig:
instanceNames:
- string
instanceReferences:
- instanceId: string
instanceName: string
publicEciesKey: string
publicKey: string
isPreemptible: boolean
managedGroupConfig:
instanceGroupManagerName: string
instanceTemplateName: string
workerConfig:
instanceNames:
- string
instanceReferences:
- instanceId: string
instanceName: string
publicEciesKey: string
publicKey: string
isPreemptible: boolean
managedGroupConfig:
instanceGroupManagerName: string
instanceTemplateName: string
externalRef: string
metrics:
hdfsMetrics:
string: string
yarnMetrics:
string: string
observedGeneration: integer
status:
detail: string
state: string
stateStartTime: string
substate: string
statusHistory:
- detail: string
state: string
stateStartTime: string
substate: string
| Fields | |
|---|---|
clusterUuid |
Output only. A cluster UUID (Unique Universal Identifier). Dataproc generates this value when it creates the cluster. |
conditions |
Conditions represent the latest available observations of the DataprocCluster's current state. |
conditions[] |
|
conditions[].lastTransitionTime |
Last time the condition transitioned from one status to another. |
conditions[].message |
Human-readable message indicating details about last transition. |
conditions[].reason |
Unique, one-word, CamelCase reason for the condition's last transition. |
conditions[].status |
Status is the status of the condition. Can be True, False, Unknown. |
conditions[].type |
Type is the type of the condition. |
config |
|
config.endpointConfig |
|
config.endpointConfig.httpPorts |
Output only. The map of port descriptions to URLs. Will only be populated if enable_http_port_access is true. |
config.lifecycleConfig |
|
config.lifecycleConfig.idleStartTime |
Output only. The time when cluster became idle (most recent job finished) and became eligible for deletion due to idleness (see JSON representation of [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)). |
config.masterConfig |
|
config.masterConfig.instanceNames |
Output only. The list of instance names. Dataproc derives the names from `cluster_name`, `num_instances`, and the instance group. |
config.masterConfig.instanceNames[] |
|
config.masterConfig.instanceReferences |
Output only. List of references to Compute Engine instances. |
config.masterConfig.instanceReferences[] |
|
config.masterConfig.instanceReferences[].instanceId |
The unique identifier of the Compute Engine instance. |
config.masterConfig.instanceReferences[].instanceName |
The user-friendly name of the Compute Engine instance. |
config.masterConfig.instanceReferences[].publicEciesKey |
The public ECIES key used for sharing data with this instance. |
config.masterConfig.instanceReferences[].publicKey |
The public RSA key used for sharing data with this instance. |
config.masterConfig.isPreemptible |
Output only. Specifies that this instance group contains preemptible instances. |
config.masterConfig.managedGroupConfig |
Output only. The config for Compute Engine Instance Group Manager that manages this group. This is only used for preemptible instance groups. |
config.masterConfig.managedGroupConfig.instanceGroupManagerName |
Output only. The name of the Instance Group Manager for this group. |
config.masterConfig.managedGroupConfig.instanceTemplateName |
Output only. The name of the Instance Template used for the Managed Instance Group. |
config.secondaryWorkerConfig |
|
config.secondaryWorkerConfig.instanceNames |
Output only. The list of instance names. Dataproc derives the names from `cluster_name`, `num_instances`, and the instance group. |
config.secondaryWorkerConfig.instanceNames[] |
|
config.secondaryWorkerConfig.instanceReferences |
Output only. List of references to Compute Engine instances. |
config.secondaryWorkerConfig.instanceReferences[] |
|
config.secondaryWorkerConfig.instanceReferences[].instanceId |
The unique identifier of the Compute Engine instance. |
config.secondaryWorkerConfig.instanceReferences[].instanceName |
The user-friendly name of the Compute Engine instance. |
config.secondaryWorkerConfig.instanceReferences[].publicEciesKey |
The public ECIES key used for sharing data with this instance. |
config.secondaryWorkerConfig.instanceReferences[].publicKey |
The public RSA key used for sharing data with this instance. |
config.secondaryWorkerConfig.isPreemptible |
Output only. Specifies that this instance group contains preemptible instances. |
config.secondaryWorkerConfig.managedGroupConfig |
Output only. The config for Compute Engine Instance Group Manager that manages this group. This is only used for preemptible instance groups. |
config.secondaryWorkerConfig.managedGroupConfig.instanceGroupManagerName |
Output only. The name of the Instance Group Manager for this group. |
config.secondaryWorkerConfig.managedGroupConfig.instanceTemplateName |
Output only. The name of the Instance Template used for the Managed Instance Group. |
config.workerConfig |
|
config.workerConfig.instanceNames |
Output only. The list of instance names. Dataproc derives the names from `cluster_name`, `num_instances`, and the instance group. |
config.workerConfig.instanceNames[] |
|
config.workerConfig.instanceReferences |
Output only. List of references to Compute Engine instances. |
config.workerConfig.instanceReferences[] |
|
config.workerConfig.instanceReferences[].instanceId |
The unique identifier of the Compute Engine instance. |
config.workerConfig.instanceReferences[].instanceName |
The user-friendly name of the Compute Engine instance. |
config.workerConfig.instanceReferences[].publicEciesKey |
The public ECIES key used for sharing data with this instance. |
config.workerConfig.instanceReferences[].publicKey |
The public RSA key used for sharing data with this instance. |
config.workerConfig.isPreemptible |
Output only. Specifies that this instance group contains preemptible instances. |
config.workerConfig.managedGroupConfig |
Output only. The config for Compute Engine Instance Group Manager that manages this group. This is only used for preemptible instance groups. |
config.workerConfig.managedGroupConfig.instanceGroupManagerName |
Output only. The name of the Instance Group Manager for this group. |
config.workerConfig.managedGroupConfig.instanceTemplateName |
Output only. The name of the Instance Template used for the Managed Instance Group. |
externalRef |
A unique specifier for the DataprocCluster resource in Google Cloud. |
metrics |
Output only. Contains cluster daemon metrics such as HDFS and YARN stats. **Beta Feature**: This report is available for testing purposes only. It may be changed before final release. |
metrics.hdfsMetrics |
The HDFS metrics. |
metrics.yarnMetrics |
The YARN metrics. |
observedGeneration |
ObservedGeneration is the generation of the resource that was most recently observed by the Config Connector controller. If this is equal to metadata.generation, then that means that the current reported status reflects the most recent desired state of the resource. |
status |
Output only. Cluster status. |
status.detail |
Optional. Output only. Details of cluster's state. |
status.state |
Output only. The cluster's state. Possible values: UNKNOWN, CREATING, RUNNING, ERROR, DELETING, UPDATING, STOPPING, STOPPED, STARTING |
status.stateStartTime |
Output only. Time when this state was entered (see JSON representation of [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)). |
status.substate |
Output only. Additional state information that includes status reported by the agent. Possible values: UNSPECIFIED, UNHEALTHY, STALE_STATUS |
statusHistory |
Output only. The previous cluster status. |
statusHistory[] |
|
statusHistory[].detail |
Optional. Output only. Details of cluster's state. |
statusHistory[].state |
Output only. The cluster's state. Possible values: UNKNOWN, CREATING, RUNNING, ERROR, DELETING, UPDATING, STOPPING, STOPPED, STARTING |
statusHistory[].stateStartTime |
Output only. Time when this state was entered (see JSON representation of [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)). |
statusHistory[].substate |
Output only. Additional state information that includes status reported by the agent. Possible values: UNSPECIFIED, UNHEALTHY, STALE_STATUS |
Sample YAML(s)
Typical Use Case
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
apiVersion: dataproc.cnrm.cloud.google.com/v1beta1
kind: DataprocCluster
metadata:
annotations:
cnrm.cloud.google.com/management-conflict-prevention-policy: "none"
name: dataproccluster-sample
labels:
label-one: "value-one"
spec:
location: "us-central1"
config:
autoscalingConfig:
policyRef:
name: dataproccluster-dep
stagingBucketRef:
name: dataproccluster-dep-staging
masterConfig:
diskConfig:
bootDiskSizeGb: 30
bootDiskType: pd-standard
machineType: "n2-standard-2"
numInstances: 1
workerConfig:
numInstances: 2
machineType: "n2-standard-2"
diskConfig:
bootDiskSizeGb: 30
numLocalSsds: 1
softwareConfig:
imageVersion: "2.0.39-debian10"
gceClusterConfig:
tags:
- "foo"
- "bar"
initializationActions:
- executableFile: "gs://dataproc-initialization-actions/stackdriver/stackdriver.sh"
executionTimeout: "500s"
---
apiVersion: dataproc.cnrm.cloud.google.com/v1beta1
kind: DataprocAutoscalingPolicy
metadata:
annotations:
name: dataproccluster-dep
spec:
location: "us-central1"
workerConfig:
maxInstances: 5
secondaryWorkerConfig:
maxInstances: 2
basicAlgorithm:
yarnConfig:
gracefulDecommissionTimeout: "30s"
scaleDownFactor: 0.5
scaleUpFactor: 0.5
---
apiVersion: storage.cnrm.cloud.google.com/v1beta1
kind: StorageBucket
metadata:
annotations:
cnrm.cloud.google.com/force-destroy: "true"
labels:
label-one: "value-one"
name: dataproccluster-dep-staging
spec:
# StorageBucket names must be globally unique. Replace ${PROJECT_ID?} with your project ID.
resourceID: ${PROJECT_ID?}-dataproccluster-dep-staging
bucketPolicyOnly: true