Class: Google::Cloud::Dataproc::V1::GkeNodePoolTarget

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/dataproc/v1/shared.rb

Overview

GKE NodePools that Dataproc workloads run on.

Defined Under Namespace

Modules: Role

Instance Attribute Summary collapse

Instance Attribute Details

#node_pool::String

Returns Required. The target GKE NodePool. Format: 'projects/{project}/locations/{location}/clusters/{cluster}/nodePools/{node_pool}'.

Returns:

  • (::String)

    Required. The target GKE NodePool. Format: 'projects/{project}/locations/{location}/clusters/{cluster}/nodePools/{node_pool}'



237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
# File 'proto_docs/google/cloud/dataproc/v1/shared.rb', line 237

class GkeNodePoolTarget
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # `Role` specifies whose tasks will run on the NodePool. The roles can be
  # specific to workloads. Exactly one GkeNodePoolTarget within the
  # VirtualCluster must have 'default' role, which is used to run all workloads
  # that are not associated with a NodePool.
  module Role
    # Role is unspecified.
    ROLE_UNSPECIFIED = 0

    # Any roles that are not directly assigned to a NodePool run on the
    # `default` role's NodePool.
    DEFAULT = 1

    # Run controllers and webhooks.
    CONTROLLER = 2

    # Run spark driver.
    SPARK_DRIVER = 3

    # Run spark executors.
    SPARK_EXECUTOR = 4
  end
end

#node_pool_config::Google::Cloud::Dataproc::V1::GkeNodePoolConfig

Returns Optional. The configuration for the GKE NodePool.

If specified, Dataproc attempts to create a NodePool 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 NodePool with the specified name is used. If a NodePool with the specified name does not exist, Dataproc create a NodePool with default values.

Returns:

  • (::Google::Cloud::Dataproc::V1::GkeNodePoolConfig)

    Optional. The configuration for the GKE NodePool.

    If specified, Dataproc attempts to create a NodePool 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 NodePool with the specified name is used. If a NodePool with the specified name does not exist, Dataproc create a NodePool with default values.



237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
# File 'proto_docs/google/cloud/dataproc/v1/shared.rb', line 237

class GkeNodePoolTarget
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # `Role` specifies whose tasks will run on the NodePool. The roles can be
  # specific to workloads. Exactly one GkeNodePoolTarget within the
  # VirtualCluster must have 'default' role, which is used to run all workloads
  # that are not associated with a NodePool.
  module Role
    # Role is unspecified.
    ROLE_UNSPECIFIED = 0

    # Any roles that are not directly assigned to a NodePool run on the
    # `default` role's NodePool.
    DEFAULT = 1

    # Run controllers and webhooks.
    CONTROLLER = 2

    # Run spark driver.
    SPARK_DRIVER = 3

    # Run spark executors.
    SPARK_EXECUTOR = 4
  end
end

#roles::Array<::Google::Cloud::Dataproc::V1::GkeNodePoolTarget::Role>

Returns Required. The types of role for a GKE NodePool.

Returns:



237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
# File 'proto_docs/google/cloud/dataproc/v1/shared.rb', line 237

class GkeNodePoolTarget
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # `Role` specifies whose tasks will run on the NodePool. The roles can be
  # specific to workloads. Exactly one GkeNodePoolTarget within the
  # VirtualCluster must have 'default' role, which is used to run all workloads
  # that are not associated with a NodePool.
  module Role
    # Role is unspecified.
    ROLE_UNSPECIFIED = 0

    # Any roles that are not directly assigned to a NodePool run on the
    # `default` role's NodePool.
    DEFAULT = 1

    # Run controllers and webhooks.
    CONTROLLER = 2

    # Run spark driver.
    SPARK_DRIVER = 3

    # Run spark executors.
    SPARK_EXECUTOR = 4
  end
end