node_groups
Creates, updates, deletes, gets or lists a node_groups
resource.
Overview
Name | node_groups |
Type | Resource |
Id | google.dataproc.node_groups |
Fields
Name | Datatype | Description |
---|---|---|
name | string | The Node group resource name (https://aip.dev/122). |
labels | object | Optional. Node group labels. Label keys must consist of from 1 to 63 characters and conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt). Label values can be empty. If specified, they must consist of from 1 to 63 characters and conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt). The node group must have no more than 32 labelsn. |
nodeGroupConfig | object | The config settings for Compute Engine resources in an instance group, such as a master or worker group. |
roles | array | Required. Node group roles. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
projects_regions_clusters_node_groups_get | SELECT | clustersId, nodeGroupsId, projectsId, regionsId | Gets the resource representation for a node group in a cluster. |
projects_regions_clusters_node_groups_create | INSERT | clustersId, projectsId, regionsId | Creates a node group in a cluster. The returned Operation.metadata is NodeGroupOperationMetadata (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#nodegroupoperationmetadata). |
projects_regions_clusters_node_groups_repair | EXEC | clustersId, nodeGroupsId, projectsId, regionsId | Repair nodes in a node group. |
projects_regions_clusters_node_groups_resize | EXEC | clustersId, nodeGroupsId, projectsId, regionsId | Resizes a node group in a cluster. The returned Operation.metadata is NodeGroupOperationMetadata (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#nodegroupoperationmetadata). |
SELECT
examples
Gets the resource representation for a node group in a cluster.
SELECT
name,
labels,
nodeGroupConfig,
roles
FROM google.dataproc.node_groups
WHERE clustersId = '{{ clustersId }}'
AND nodeGroupsId = '{{ nodeGroupsId }}'
AND projectsId = '{{ projectsId }}'
AND regionsId = '{{ regionsId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new node_groups
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO google.dataproc.node_groups (
clustersId,
projectsId,
regionsId,
name,
roles,
nodeGroupConfig,
labels
)
SELECT
'{{ clustersId }}',
'{{ projectsId }}',
'{{ regionsId }}',
'{{ name }}',
'{{ roles }}',
'{{ nodeGroupConfig }}',
'{{ labels }}'
;
- name: your_resource_model_name
props:
- name: name
value: string
- name: roles
value:
- string
- name: nodeGroupConfig
value:
- name: numInstances
value: integer
- name: instanceNames
value:
- string
- name: instanceReferences
value:
- - name: instanceName
value: string
- name: instanceId
value: string
- name: publicKey
value: string
- name: publicEciesKey
value: string
- name: imageUri
value: string
- name: machineTypeUri
value: string
- name: diskConfig
value:
- name: bootDiskType
value: string
- name: bootDiskSizeGb
value: integer
- name: numLocalSsds
value: integer
- name: localSsdInterface
value: string
- name: bootDiskProvisionedIops
value: string
- name: bootDiskProvisionedThroughput
value: string
- name: isPreemptible
value: boolean
- name: preemptibility
value: string
- name: managedGroupConfig
value:
- name: instanceTemplateName
value: string
- name: instanceGroupManagerName
value: string
- name: instanceGroupManagerUri
value: string
- name: accelerators
value:
- - name: acceleratorTypeUri
value: string
- name: acceleratorCount
value: integer
- name: minCpuPlatform
value: string
- name: minNumInstances
value: integer
- name: instanceFlexibilityPolicy
value:
- name: instanceSelectionList
value:
- - name: machineTypes
value:
- string
- name: rank
value: integer
- name: instanceSelectionResults
value:
- - name: machineType
value: string
- name: vmCount
value: integer
- name: startupConfig
value:
- name: requiredRegistrationFraction
value: number
- name: labels
value: object