Reference documentation and code samples for the Google Cloud Dataproc V1 Client class Role.
Role specifies the tasks that will run on the node pool. Roles can be
specific to workloads. Exactly one
GkeNodePoolTarget within the
virtual cluster must have the DEFAULT role, which is used to run all
workloads that are not associated with a node pool.
Protobuf type google.cloud.dataproc.v1.GkeNodePoolTarget.Role
Namespace
Google \ Cloud \ Dataproc \ V1 \ GkeNodePoolTargetMethods
static::name
| Parameter | |
|---|---|
| Name | Description |
value |
mixed
|
static::value
| Parameter | |
|---|---|
| Name | Description |
name |
mixed
|
Constants
ROLE_UNSPECIFIED
Value: 0Role is unspecified.
Generated from protobuf enum ROLE_UNSPECIFIED = 0;
PBDEFAULT
Value: 1At least one node pool must have the DEFAULT role.
Work assigned to a role that is not associated with a node pool
is assigned to the node pool with the DEFAULT role. For example,
work assigned to the CONTROLLER role will be assigned to the node pool
with the DEFAULT role if no node pool has the CONTROLLER role.
Generated from protobuf enum DEFAULT = 1;
CONTROLLER
Value: 2Run work associated with the Dataproc control plane (for example, controllers and webhooks). Very low resource requirements.
Generated from protobuf enum CONTROLLER = 2;
SPARK_DRIVER
Value: 3Run work associated with a Spark driver of a job.
Generated from protobuf enum SPARK_DRIVER = 3;
SPARK_EXECUTOR
Value: 4Run work associated with a Spark executor of a job.
Generated from protobuf enum SPARK_EXECUTOR = 4;