Skip to main content

bare_metal_node_pools

Creates, updates, deletes, gets or lists a bare_metal_node_pools resource.

Overview

Namebare_metal_node_pools
TypeResource
Idgoogle.gkeonprem.bare_metal_node_pools

Fields

NameDatatypeDescription
namestringImmutable. The bare metal node pool resource name.
annotationsobjectAnnotations on the bare metal node pool. This field has the same restrictions as Kubernetes annotations. The total size of all keys and values combined is limited to 256k. Key can have 2 segments: prefix (optional) and name (required), separated by a slash (/). Prefix must be a DNS subdomain. Name must be 63 characters or less, begin and end with alphanumerics, with dashes (-), underscores (_), dots (.), and alphanumerics between.
createTimestringOutput only. The time at which this bare metal node pool was created.
deleteTimestringOutput only. The time at which this bare metal node pool was deleted. If the resource is not deleted, this must be empty
displayNamestringThe display name for the bare metal node pool.
etagstringThis checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding. Allows clients to perform consistent read-modify-writes through optimistic concurrency control.
nodePoolConfigobjectBareMetalNodePoolConfig describes the configuration of all nodes within a given bare metal node pool.
reconcilingbooleanOutput only. If set, there are currently changes in flight to the bare metal node pool.
statestringOutput only. The current state of the bare metal node pool.
statusobjectResourceStatus describes why a cluster or node pool has a certain status. (e.g., ERROR or DEGRADED).
uidstringOutput only. The unique identifier of the bare metal node pool.
updateTimestringOutput only. The time at which this bare metal node pool was last updated.
upgradePolicyobjectBareMetalNodePoolUpgradePolicy defines the node pool upgrade policy.

Methods

NameAccessible byRequired ParamsDescription
projects_locations_bare_metal_clusters_bare_metal_node_pools_getSELECTbareMetalClustersId, bareMetalNodePoolsId, locationsId, projectsIdGets details of a single bare metal node pool.
projects_locations_bare_metal_clusters_bare_metal_node_pools_listSELECTbareMetalClustersId, locationsId, projectsIdLists bare metal node pools in a given project, location and bare metal cluster.
projects_locations_bare_metal_clusters_bare_metal_node_pools_createINSERTbareMetalClustersId, locationsId, projectsIdCreates a new bare metal node pool in a given project, location and Bare Metal cluster.
projects_locations_bare_metal_clusters_bare_metal_node_pools_deleteDELETEbareMetalClustersId, bareMetalNodePoolsId, locationsId, projectsIdDeletes a single bare metal node pool.
projects_locations_bare_metal_clusters_bare_metal_node_pools_patchUPDATEbareMetalClustersId, bareMetalNodePoolsId, locationsId, projectsIdUpdates the parameters of a single bare metal node pool.
projects_locations_bare_metal_clusters_bare_metal_node_pools_enrollEXECbareMetalClustersId, locationsId, projectsIdEnrolls an existing bare metal node pool to the Anthos On-Prem API within a given project and location. Through enrollment, an existing node pool will become Anthos On-Prem API managed. The corresponding GCP resources will be created.
projects_locations_bare_metal_clusters_bare_metal_node_pools_unenrollEXECbareMetalClustersId, bareMetalNodePoolsId, locationsId, projectsIdUnenrolls a bare metal node pool from Anthos On-Prem API.

SELECT examples

Lists bare metal node pools in a given project, location and bare metal cluster.

SELECT
name,
annotations,
createTime,
deleteTime,
displayName,
etag,
nodePoolConfig,
reconciling,
state,
status,
uid,
updateTime,
upgradePolicy
FROM google.gkeonprem.bare_metal_node_pools
WHERE bareMetalClustersId = '{{ bareMetalClustersId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';

INSERT example

Use the following StackQL query and manifest file to create a new bare_metal_node_pools resource.

/*+ create */
INSERT INTO google.gkeonprem.bare_metal_node_pools (
bareMetalClustersId,
locationsId,
projectsId,
name,
displayName,
etag,
annotations,
nodePoolConfig,
upgradePolicy
)
SELECT
'{{ bareMetalClustersId }}',
'{{ locationsId }}',
'{{ projectsId }}',
'{{ name }}',
'{{ displayName }}',
'{{ etag }}',
'{{ annotations }}',
'{{ nodePoolConfig }}',
'{{ upgradePolicy }}'
;

UPDATE example

Updates a bare_metal_node_pools resource.

/*+ update */
UPDATE google.gkeonprem.bare_metal_node_pools
SET
name = '{{ name }}',
displayName = '{{ displayName }}',
etag = '{{ etag }}',
annotations = '{{ annotations }}',
nodePoolConfig = '{{ nodePoolConfig }}',
upgradePolicy = '{{ upgradePolicy }}'
WHERE
bareMetalClustersId = '{{ bareMetalClustersId }}'
AND bareMetalNodePoolsId = '{{ bareMetalNodePoolsId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';

DELETE example

Deletes the specified bare_metal_node_pools resource.

/*+ delete */
DELETE FROM google.gkeonprem.bare_metal_node_pools
WHERE bareMetalClustersId = '{{ bareMetalClustersId }}'
AND bareMetalNodePoolsId = '{{ bareMetalNodePoolsId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';