Skip to main content

vmware_clusters

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

Overview

Namevmware_clusters
TypeResource
Idgoogle.gkeonprem.vmware_clusters

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringImmutable. The VMware user cluster resource name.
adminClusterMembershipstringRequired. The admin cluster this VMware user cluster belongs to. This is the full resource name of the admin cluster's fleet membership. In the future, references to other resource types might be allowed if admin clusters are modeled as their own resources.
adminClusterNamestringOutput only. The resource name of the VMware admin cluster hosting this user cluster.
annotationsobjectAnnotations on the VMware user 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.
antiAffinityGroupsobjectAAGConfig specifies whether to spread VMware user cluster nodes across at least three physical hosts in the datacenter. (id: VmwareAAGConfig)
authorizationobjectRBAC policy that will be applied and managed by the Anthos On-Prem API. (id: Authorization)
autoRepairConfigobjectConfiguration for auto repairing. (id: VmwareAutoRepairConfig)
binaryAuthorizationobjectBinary Authorization related configurations. (id: BinaryAuthorization)
controlPlaneNodeobjectVMware user cluster control plane nodes must have either 1 or 3 replicas. (id: VmwareControlPlaneNodeConfig)
createTimestring (google-datetime)Output only. The time at which VMware user cluster was created.
dataplaneV2objectVmwareDataplaneV2Config specifies configuration for Dataplane V2. (id: VmwareDataplaneV2Config)
deleteTimestring (google-datetime)Output only. The time at which VMware user cluster was deleted.
descriptionstringA human readable description of this VMware user cluster.
disableBundledIngressbooleanDisable bundled ingress.
enableAdvancedClusterbooleanEnable advanced cluster.
enableControlPlaneV2booleanEnable control plane V2. Default to false.
endpointstringOutput only. The DNS name of VMware user cluster's API server.
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.
fleetobjectOutput only. Fleet configuration for the cluster. (id: Fleet)
loadBalancerobjectLoad balancer configuration. (id: VmwareLoadBalancerConfig)
localNamestringOutput only. The object name of the VMware OnPremUserCluster custom resource on the associated admin cluster. 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.
networkConfigobjectThe VMware user cluster network configuration. (id: VmwareNetworkConfig)
onPremVersionstringRequired. The Anthos clusters on the VMware version for your user cluster.
reconcilingbooleanOutput only. If set, there are currently changes in flight to the VMware user cluster.
statestringOutput only. The current state of VMware user cluster.
statusobjectOutput only. ResourceStatus representing detailed cluster state. (id: ResourceStatus)
storageobjectStorage configuration. (id: VmwareStorageConfig)
uidstringOutput only. The unique identifier of the VMware user cluster.
updateTimestring (google-datetime)Output only. The time at which VMware user cluster was last updated.
upgradePolicyobjectSpecifies upgrade policy for the cluster. (id: VmwareClusterUpgradePolicy)
validationCheckobjectOutput only. ValidationCheck represents the result of the preflight check job. (id: ValidationCheck)
vcenterobjectVmwareVCenterConfig specifies vCenter config for the user cluster. If unspecified, it is inherited from the admin cluster. (id: VmwareVCenterConfig)
vmTrackingEnabledbooleanEnable VM tracking.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
projects_locations_vmware_clusters_getselectprojectsId, locationsId, vmwareClustersIdview, allowMissingGets details of a single VMware Cluster.
projects_locations_vmware_clusters_listselectprojectsId, locationsIdpageSize, pageToken, filter, view, allowMissingLists VMware Clusters in a given project and location.
projects_locations_vmware_clusters_createinsertprojectsId, locationsIdvmwareClusterId, validateOnly, allowPreflightFailureCreates a new VMware user cluster in a given project and location.
projects_locations_vmware_clusters_patchupdateprojectsId, locationsId, vmwareClustersIdupdateMask, validateOnlyUpdates the parameters of a single VMware cluster.
projects_locations_vmware_clusters_deletedeleteprojectsId, locationsId, vmwareClustersIdetag, allowMissing, validateOnly, force, ignoreErrorsDeletes a single VMware Cluster.
projects_locations_vmware_clusters_enrollexecprojectsId, locationsIdEnrolls an existing VMware user cluster and its node pools to the Anthos On-Prem API within a given project and location. Through enrollment, an existing cluster will become Anthos On-Prem API managed. The corresponding GCP resources will be created and all future modifications to the cluster and/or its node pools will be expected to be performed through the API.
projects_locations_vmware_clusters_unenrollexecprojectsId, locationsId, vmwareClustersIdetag, allowMissing, validateOnly, forceUnenrolls an existing VMware user cluster and its node pools 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 and node pools will continue to run; however, they will no longer be accessible through the Anthos On-Prem API or UI.
projects_locations_vmware_clusters_query_version_configexecprojectsId, locationsIdcreateConfig.adminClusterMembership, createConfig.adminClusterName, upgradeConfig.clusterNameQueries the VMware user cluster version config.

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.

NameDatatypeDescription
locationsIdstring
projectsIdstring
vmwareClustersIdstring
allowMissingboolean
allowPreflightFailureboolean
createConfig.adminClusterMembershipstring
createConfig.adminClusterNamestring
etagstring
filterstring
forceboolean
ignoreErrorsboolean
pageSizeinteger (int32)
pageTokenstring
updateMaskstring (google-fieldmask)
upgradeConfig.clusterNamestring
validateOnlyboolean
viewstring
vmwareClusterIdstring

SELECT examples

Gets details of a single VMware Cluster.

SELECT
name,
adminClusterMembership,
adminClusterName,
annotations,
antiAffinityGroups,
authorization,
autoRepairConfig,
binaryAuthorization,
controlPlaneNode,
createTime,
dataplaneV2,
deleteTime,
description,
disableBundledIngress,
enableAdvancedCluster,
enableControlPlaneV2,
endpoint,
etag,
fleet,
loadBalancer,
localName,
networkConfig,
onPremVersion,
reconciling,
state,
status,
storage,
uid,
updateTime,
upgradePolicy,
validationCheck,
vcenter,
vmTrackingEnabled
FROM google.gkeonprem.vmware_clusters
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND vmwareClustersId = '{{ vmwareClustersId }}' -- required
AND view = '{{ view }}'
AND allowMissing = '{{ allowMissing }}';

INSERT examples

Creates a new VMware user cluster in a given project and location.

INSERT INTO google.gkeonprem.vmware_clusters (
data__name,
data__adminClusterMembership,
data__description,
data__onPremVersion,
data__etag,
data__annotations,
data__controlPlaneNode,
data__antiAffinityGroups,
data__storage,
data__networkConfig,
data__loadBalancer,
data__vcenter,
data__dataplaneV2,
data__vmTrackingEnabled,
data__autoRepairConfig,
data__authorization,
data__enableControlPlaneV2,
data__binaryAuthorization,
data__upgradePolicy,
data__disableBundledIngress,
data__enableAdvancedCluster,
projectsId,
locationsId,
vmwareClusterId,
validateOnly,
allowPreflightFailure
)
SELECT
'{{ name }}',
'{{ adminClusterMembership }}',
'{{ description }}',
'{{ onPremVersion }}',
'{{ etag }}',
'{{ annotations }}',
'{{ controlPlaneNode }}',
'{{ antiAffinityGroups }}',
'{{ storage }}',
'{{ networkConfig }}',
'{{ loadBalancer }}',
'{{ vcenter }}',
'{{ dataplaneV2 }}',
{{ vmTrackingEnabled }},
'{{ autoRepairConfig }}',
'{{ authorization }}',
{{ enableControlPlaneV2 }},
'{{ binaryAuthorization }}',
'{{ upgradePolicy }}',
{{ disableBundledIngress }},
{{ enableAdvancedCluster }},
'{{ projectsId }}',
'{{ locationsId }}',
'{{ vmwareClusterId }}',
'{{ validateOnly }}',
'{{ allowPreflightFailure }}'
RETURNING
name,
done,
error,
metadata,
response
;

UPDATE examples

Updates the parameters of a single VMware cluster.

UPDATE google.gkeonprem.vmware_clusters
SET
data__name = '{{ name }}',
data__adminClusterMembership = '{{ adminClusterMembership }}',
data__description = '{{ description }}',
data__onPremVersion = '{{ onPremVersion }}',
data__etag = '{{ etag }}',
data__annotations = '{{ annotations }}',
data__controlPlaneNode = '{{ controlPlaneNode }}',
data__antiAffinityGroups = '{{ antiAffinityGroups }}',
data__storage = '{{ storage }}',
data__networkConfig = '{{ networkConfig }}',
data__loadBalancer = '{{ loadBalancer }}',
data__vcenter = '{{ vcenter }}',
data__dataplaneV2 = '{{ dataplaneV2 }}',
data__vmTrackingEnabled = {{ vmTrackingEnabled }},
data__autoRepairConfig = '{{ autoRepairConfig }}',
data__authorization = '{{ authorization }}',
data__enableControlPlaneV2 = {{ enableControlPlaneV2 }},
data__binaryAuthorization = '{{ binaryAuthorization }}',
data__upgradePolicy = '{{ upgradePolicy }}',
data__disableBundledIngress = {{ disableBundledIngress }},
data__enableAdvancedCluster = {{ enableAdvancedCluster }}
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND vmwareClustersId = '{{ vmwareClustersId }}' --required
AND updateMask = '{{ updateMask}}'
AND validateOnly = {{ validateOnly}}
RETURNING
name,
done,
error,
metadata,
response;

DELETE examples

Deletes a single VMware Cluster.

DELETE FROM google.gkeonprem.vmware_clusters
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND vmwareClustersId = '{{ vmwareClustersId }}' --required
AND etag = '{{ etag }}'
AND allowMissing = '{{ allowMissing }}'
AND validateOnly = '{{ validateOnly }}'
AND force = '{{ force }}'
AND ignoreErrors = '{{ ignoreErrors }}';

Lifecycle Methods

Enrolls an existing VMware user cluster and its node pools to the Anthos On-Prem API within a given project and location. Through enrollment, an existing cluster will become Anthos On-Prem API managed. The corresponding GCP resources will be created and all future modifications to the cluster and/or its node pools will be expected to be performed through the API.

EXEC google.gkeonprem.vmware_clusters.projects_locations_vmware_clusters_enroll 
@projectsId='{{ projectsId }}' --required,
@locationsId='{{ locationsId }}' --required
@@json=
'{
"vmwareClusterId": "{{ vmwareClusterId }}",
"localName": "{{ localName }}",
"adminClusterMembership": "{{ adminClusterMembership }}",
"validateOnly": {{ validateOnly }}
}';