bare_metal_admin_clusters
Creates, updates, deletes, gets or lists a bare_metal_admin_clusters resource.
Overview
| Name | bare_metal_admin_clusters |
| Type | Resource |
| Id | google.gkeonprem.bare_metal_admin_clusters |
Fields
The following fields are returned by SELECT queries:
- projects_locations_bare_metal_admin_clusters_get
- projects_locations_bare_metal_admin_clusters_list
| Name | Datatype | Description |
|---|---|---|
name | string | Immutable. The bare metal admin cluster resource name. |
annotations | object | Annotations on the bare metal admin cluster. 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. |
bareMetalVersion | string | The Anthos clusters on bare metal version for the bare metal admin cluster. |
binaryAuthorization | object | Binary Authorization related configurations. (id: BinaryAuthorization) |
clusterOperations | object | Cluster operations configuration. (id: BareMetalAdminClusterOperationsConfig) |
controlPlane | object | Control plane configuration. (id: BareMetalAdminControlPlaneConfig) |
createTime | string (google-datetime) | Output only. The time at which this bare metal admin cluster was created. |
deleteTime | string (google-datetime) | Output only. The time at which this bare metal admin cluster was deleted. If the resource is not deleted, this must be empty |
description | string | A human readable description of this bare metal admin cluster. |
endpoint | string | Output only. The IP address name of bare metal admin cluster's API server. |
etag | string | This 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. |
fleet | object | Output only. Fleet configuration for the cluster. (id: Fleet) |
loadBalancer | object | Load balancer configuration. (id: BareMetalAdminLoadBalancerConfig) |
localName | string | Output only. The object name of the bare metal cluster custom resource. This field is used to support conflicting names when enrolling existing clusters to the API. When used as a part of cluster enrollment, this field will differ from the ID in the resource name. For new clusters, this field will match the user provided cluster name and be visible in the last component of the resource name. It is not modifiable. All users should use this name to access their cluster using gkectl or kubectl and should expect to see the local name when viewing admin cluster controller logs. |
maintenanceConfig | object | Maintenance configuration. (id: BareMetalAdminMaintenanceConfig) |
maintenanceStatus | object | Output only. MaintenanceStatus representing state of maintenance. (id: BareMetalAdminMaintenanceStatus) |
networkConfig | object | Network configuration. (id: BareMetalAdminNetworkConfig) |
nodeAccessConfig | object | Node access related configurations. (id: BareMetalAdminNodeAccessConfig) |
nodeConfig | object | Workload node configuration. (id: BareMetalAdminWorkloadNodeConfig) |
osEnvironmentConfig | object | OS environment related configurations. (id: BareMetalAdminOsEnvironmentConfig) |
proxy | object | Proxy configuration. (id: BareMetalAdminProxyConfig) |
reconciling | boolean | Output only. If set, there are currently changes in flight to the bare metal Admin Cluster. |
securityConfig | object | Security related configuration. (id: BareMetalAdminSecurityConfig) |
state | string | Output only. The current state of the bare metal admin cluster. |
status | object | Output only. ResourceStatus representing detailed cluster status. (id: ResourceStatus) |
storage | object | Storage configuration. (id: BareMetalAdminStorageConfig) |
uid | string | Output only. The unique identifier of the bare metal admin cluster. |
updateTime | string (google-datetime) | Output only. The time at which this bare metal admin cluster was last updated. |
validationCheck | object | Output only. ValidationCheck representing the result of the preflight check. (id: ValidationCheck) |
| Name | Datatype | Description |
|---|---|---|
name | string | Immutable. The bare metal admin cluster resource name. |
annotations | object | Annotations on the bare metal admin cluster. 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. |
bareMetalVersion | string | The Anthos clusters on bare metal version for the bare metal admin cluster. |
binaryAuthorization | object | Binary Authorization related configurations. (id: BinaryAuthorization) |
clusterOperations | object | Cluster operations configuration. (id: BareMetalAdminClusterOperationsConfig) |
controlPlane | object | Control plane configuration. (id: BareMetalAdminControlPlaneConfig) |
createTime | string (google-datetime) | Output only. The time at which this bare metal admin cluster was created. |
deleteTime | string (google-datetime) | Output only. The time at which this bare metal admin cluster was deleted. If the resource is not deleted, this must be empty |
description | string | A human readable description of this bare metal admin cluster. |
endpoint | string | Output only. The IP address name of bare metal admin cluster's API server. |
etag | string | This 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. |
fleet | object | Output only. Fleet configuration for the cluster. (id: Fleet) |
loadBalancer | object | Load balancer configuration. (id: BareMetalAdminLoadBalancerConfig) |
localName | string | Output only. The object name of the bare metal cluster custom resource. This field is used to support conflicting names when enrolling existing clusters to the API. When used as a part of cluster enrollment, this field will differ from the ID in the resource name. For new clusters, this field will match the user provided cluster name and be visible in the last component of the resource name. It is not modifiable. All users should use this name to access their cluster using gkectl or kubectl and should expect to see the local name when viewing admin cluster controller logs. |
maintenanceConfig | object | Maintenance configuration. (id: BareMetalAdminMaintenanceConfig) |
maintenanceStatus | object | Output only. MaintenanceStatus representing state of maintenance. (id: BareMetalAdminMaintenanceStatus) |
networkConfig | object | Network configuration. (id: BareMetalAdminNetworkConfig) |
nodeAccessConfig | object | Node access related configurations. (id: BareMetalAdminNodeAccessConfig) |
nodeConfig | object | Workload node configuration. (id: BareMetalAdminWorkloadNodeConfig) |
osEnvironmentConfig | object | OS environment related configurations. (id: BareMetalAdminOsEnvironmentConfig) |
proxy | object | Proxy configuration. (id: BareMetalAdminProxyConfig) |
reconciling | boolean | Output only. If set, there are currently changes in flight to the bare metal Admin Cluster. |
securityConfig | object | Security related configuration. (id: BareMetalAdminSecurityConfig) |
state | string | Output only. The current state of the bare metal admin cluster. |
status | object | Output only. ResourceStatus representing detailed cluster status. (id: ResourceStatus) |
storage | object | Storage configuration. (id: BareMetalAdminStorageConfig) |
uid | string | Output only. The unique identifier of the bare metal admin cluster. |
updateTime | string (google-datetime) | Output only. The time at which this bare metal admin cluster was last updated. |
validationCheck | object | Output only. ValidationCheck representing the result of the preflight check. (id: ValidationCheck) |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
projects_locations_bare_metal_admin_clusters_get | select | projectsId, locationsId, bareMetalAdminClustersId | view, allowMissing | Gets details of a single bare metal admin cluster. |
projects_locations_bare_metal_admin_clusters_list | select | projectsId, locationsId | view, pageToken, allowMissing, pageSize | Lists bare metal admin clusters in a given project and location. |
projects_locations_bare_metal_admin_clusters_create | insert | projectsId, locationsId | validateOnly, bareMetalAdminClusterId, allowPreflightFailure | Creates a new bare metal admin cluster in a given project and location. The API needs to be combined with creating a bootstrap cluster to work. See: https://cloud.google.com/anthos/clusters/docs/bare-metal/latest/installing/creating-clusters/create-admin-cluster-api#prepare_bootstrap_environment |
projects_locations_bare_metal_admin_clusters_patch | update | projectsId, locationsId, bareMetalAdminClustersId | updateMask, validateOnly | Updates the parameters of a single bare metal admin cluster. |
projects_locations_bare_metal_admin_clusters_enroll | exec | projectsId, locationsId | Enrolls an existing bare metal admin cluster to the Anthos On-Prem API within a given project and location. Through enrollment, an existing admin cluster will become Anthos On-Prem API managed. The corresponding GCP resources will be created and all future modifications to the cluster will be expected to be performed through the API. | |
projects_locations_bare_metal_admin_clusters_query_version_config | exec | projectsId, locationsId | upgradeConfig.clusterName | Queries the bare metal admin cluster version config. |
projects_locations_bare_metal_admin_clusters_unenroll | exec | projectsId, locationsId, bareMetalAdminClustersId | ignoreErrors, etag, validateOnly, allowMissing | Unenrolls an existing bare metal admin cluster from the Anthos On-Prem API within a given project and location. Unenrollment removes the Cloud reference to the cluster without modifying the underlying OnPrem Resources. Clusters will continue to run; however, they will no longer be accessible through the Anthos On-Prem API or its clients. |
Parameters
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
bareMetalAdminClustersId | string | |
locationsId | string | |
projectsId | string | |
allowMissing | boolean | |
allowPreflightFailure | boolean | |
bareMetalAdminClusterId | string | |
etag | string | |
ignoreErrors | boolean | |
pageSize | integer (int32) | |
pageToken | string | |
updateMask | string (google-fieldmask) | |
upgradeConfig.clusterName | string | |
validateOnly | boolean | |
view | string |
SELECT examples
- projects_locations_bare_metal_admin_clusters_get
- projects_locations_bare_metal_admin_clusters_list
Gets details of a single bare metal admin cluster.
SELECT
name,
annotations,
bareMetalVersion,
binaryAuthorization,
clusterOperations,
controlPlane,
createTime,
deleteTime,
description,
endpoint,
etag,
fleet,
loadBalancer,
localName,
maintenanceConfig,
maintenanceStatus,
networkConfig,
nodeAccessConfig,
nodeConfig,
osEnvironmentConfig,
proxy,
reconciling,
securityConfig,
state,
status,
storage,
uid,
updateTime,
validationCheck
FROM google.gkeonprem.bare_metal_admin_clusters
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND bareMetalAdminClustersId = '{{ bareMetalAdminClustersId }}' -- required
AND view = '{{ view }}'
AND allowMissing = '{{ allowMissing }}'
;
Lists bare metal admin clusters in a given project and location.
SELECT
name,
annotations,
bareMetalVersion,
binaryAuthorization,
clusterOperations,
controlPlane,
createTime,
deleteTime,
description,
endpoint,
etag,
fleet,
loadBalancer,
localName,
maintenanceConfig,
maintenanceStatus,
networkConfig,
nodeAccessConfig,
nodeConfig,
osEnvironmentConfig,
proxy,
reconciling,
securityConfig,
state,
status,
storage,
uid,
updateTime,
validationCheck
FROM google.gkeonprem.bare_metal_admin_clusters
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND view = '{{ view }}'
AND pageToken = '{{ pageToken }}'
AND allowMissing = '{{ allowMissing }}'
AND pageSize = '{{ pageSize }}'
;
INSERT examples
- projects_locations_bare_metal_admin_clusters_create
- Manifest
Creates a new bare metal admin cluster in a given project and location. The API needs to be combined with creating a bootstrap cluster to work. See: https://cloud.google.com/anthos/clusters/docs/bare-metal/latest/installing/creating-clusters/create-admin-cluster-api#prepare_bootstrap_environment
INSERT INTO google.gkeonprem.bare_metal_admin_clusters (
data__loadBalancer,
data__name,
data__etag,
data__nodeAccessConfig,
data__controlPlane,
data__annotations,
data__nodeConfig,
data__binaryAuthorization,
data__storage,
data__proxy,
data__description,
data__maintenanceConfig,
data__clusterOperations,
data__bareMetalVersion,
data__securityConfig,
data__networkConfig,
data__osEnvironmentConfig,
projectsId,
locationsId,
validateOnly,
bareMetalAdminClusterId,
allowPreflightFailure
)
SELECT
'{{ loadBalancer }}',
'{{ name }}',
'{{ etag }}',
'{{ nodeAccessConfig }}',
'{{ controlPlane }}',
'{{ annotations }}',
'{{ nodeConfig }}',
'{{ binaryAuthorization }}',
'{{ storage }}',
'{{ proxy }}',
'{{ description }}',
'{{ maintenanceConfig }}',
'{{ clusterOperations }}',
'{{ bareMetalVersion }}',
'{{ securityConfig }}',
'{{ networkConfig }}',
'{{ osEnvironmentConfig }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ validateOnly }}',
'{{ bareMetalAdminClusterId }}',
'{{ allowPreflightFailure }}'
RETURNING
name,
done,
error,
metadata,
response
;
# Description fields are for documentation purposes
- name: bare_metal_admin_clusters
props:
- name: projectsId
value: string
description: Required parameter for the bare_metal_admin_clusters resource.
- name: locationsId
value: string
description: Required parameter for the bare_metal_admin_clusters resource.
- name: loadBalancer
value: object
description: >
Load balancer configuration.
- name: name
value: string
description: >
Immutable. The bare metal admin cluster resource name.
- name: etag
value: string
description: >
This 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.
- name: nodeAccessConfig
value: object
description: >
Node access related configurations.
- name: controlPlane
value: object
description: >
Control plane configuration.
- name: annotations
value: object
description: >
Annotations on the bare metal admin cluster. 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.
- name: nodeConfig
value: object
description: >
Workload node configuration.
- name: binaryAuthorization
value: object
description: >
Binary Authorization related configurations.
- name: storage
value: object
description: >
Storage configuration.
- name: proxy
value: object
description: >
Proxy configuration.
- name: description
value: string
description: >
A human readable description of this bare metal admin cluster.
- name: maintenanceConfig
value: object
description: >
Maintenance configuration.
- name: clusterOperations
value: object
description: >
Cluster operations configuration.
- name: bareMetalVersion
value: string
description: >
The Anthos clusters on bare metal version for the bare metal admin cluster.
- name: securityConfig
value: object
description: >
Security related configuration.
- name: networkConfig
value: object
description: >
Network configuration.
- name: osEnvironmentConfig
value: object
description: >
OS environment related configurations.
- name: validateOnly
value: boolean
- name: bareMetalAdminClusterId
value: string
- name: allowPreflightFailure
value: boolean
UPDATE examples
- projects_locations_bare_metal_admin_clusters_patch
Updates the parameters of a single bare metal admin cluster.
UPDATE google.gkeonprem.bare_metal_admin_clusters
SET
data__loadBalancer = '{{ loadBalancer }}',
data__name = '{{ name }}',
data__etag = '{{ etag }}',
data__nodeAccessConfig = '{{ nodeAccessConfig }}',
data__controlPlane = '{{ controlPlane }}',
data__annotations = '{{ annotations }}',
data__nodeConfig = '{{ nodeConfig }}',
data__binaryAuthorization = '{{ binaryAuthorization }}',
data__storage = '{{ storage }}',
data__proxy = '{{ proxy }}',
data__description = '{{ description }}',
data__maintenanceConfig = '{{ maintenanceConfig }}',
data__clusterOperations = '{{ clusterOperations }}',
data__bareMetalVersion = '{{ bareMetalVersion }}',
data__securityConfig = '{{ securityConfig }}',
data__networkConfig = '{{ networkConfig }}',
data__osEnvironmentConfig = '{{ osEnvironmentConfig }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND bareMetalAdminClustersId = '{{ bareMetalAdminClustersId }}' --required
AND updateMask = '{{ updateMask}}'
AND validateOnly = {{ validateOnly}}
RETURNING
name,
done,
error,
metadata,
response;
Lifecycle Methods
- projects_locations_bare_metal_admin_clusters_enroll
- projects_locations_bare_metal_admin_clusters_query_version_config
- projects_locations_bare_metal_admin_clusters_unenroll
Enrolls an existing bare metal admin cluster to the Anthos On-Prem API within a given project and location. Through enrollment, an existing admin cluster will become Anthos On-Prem API managed. The corresponding GCP resources will be created and all future modifications to the cluster will be expected to be performed through the API.
EXEC google.gkeonprem.bare_metal_admin_clusters.projects_locations_bare_metal_admin_clusters_enroll
@projectsId='{{ projectsId }}' --required,
@locationsId='{{ locationsId }}' --required
@@json=
'{
"bareMetalAdminClusterId": "{{ bareMetalAdminClusterId }}",
"membership": "{{ membership }}"
}'
;
Queries the bare metal admin cluster version config.
EXEC google.gkeonprem.bare_metal_admin_clusters.projects_locations_bare_metal_admin_clusters_query_version_config
@projectsId='{{ projectsId }}' --required,
@locationsId='{{ locationsId }}' --required,
@upgradeConfig.clusterName='{{ upgradeConfig.clusterName }}'
;
Unenrolls an existing bare metal admin cluster from the Anthos On-Prem API within a given project and location. Unenrollment removes the Cloud reference to the cluster without modifying the underlying OnPrem Resources. Clusters will continue to run; however, they will no longer be accessible through the Anthos On-Prem API or its clients.
EXEC google.gkeonprem.bare_metal_admin_clusters.projects_locations_bare_metal_admin_clusters_unenroll
@projectsId='{{ projectsId }}' --required,
@locationsId='{{ locationsId }}' --required,
@bareMetalAdminClustersId='{{ bareMetalAdminClustersId }}' --required,
@ignoreErrors={{ ignoreErrors }},
@etag='{{ etag }}',
@validateOnly={{ validateOnly }},
@allowMissing={{ allowMissing }}
;