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

NameDatatypeDescription
namestringImmutable. The VMware user cluster resource name.
descriptionstringA human readable description of this VMware user cluster.
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.
antiAffinityGroupsobjectSpecifies anti affinity group config for the VMware user cluster.
authorizationobjectAuthorization defines the On-Prem cluster authorization configuration to bootstrap onto the admin cluster.
autoRepairConfigobjectSpecifies config to enable/disable auto repair. The cluster-health-controller is deployed only if Enabled is true.
binaryAuthorizationobjectConfiguration for Binary Authorization.
controlPlaneNodeobjectSpecifies control plane node config for the VMware user cluster.
createTimestringOutput only. The time at which VMware user cluster was created.
dataplaneV2objectContains configurations for Dataplane V2, which is optimized dataplane for Kubernetes networking. For more information, see: https://cloud.google.com/kubernetes-engine/docs/concepts/dataplane-v2
deleteTimestringOutput only. The time at which VMware user cluster was deleted.
disableBundledIngressbooleanDisable bundled ingress.
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.
fleetobjectFleet related configuration. Fleets are a Google Cloud concept for logically organizing clusters, letting you use and manage multi-cluster capabilities and apply consistent policies across your systems. See Anthos Fleets for more details on Anthos multi-cluster capabilities using Fleets. ##
loadBalancerobjectSpecifies the locad balancer config for the VMware user cluster.
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.
networkConfigobjectSpecifies network config for the VMware user cluster.
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.
statusobjectResourceStatus describes why a cluster or node pool has a certain status. (e.g., ERROR or DEGRADED).
storageobjectSpecifies vSphere CSI components deployment config in the VMware user cluster.
uidstringOutput only. The unique identifier of the VMware user cluster.
updateTimestringOutput only. The time at which VMware user cluster was last updated.
upgradePolicyobjectVmwareClusterUpgradePolicy defines the cluster upgrade policy.
validationCheckobjectValidationCheck represents the result of preflight check.
vcenterobjectRepresents configuration for the VMware VCenter for the user cluster.
vmTrackingEnabledbooleanEnable VM tracking.

Methods

NameAccessible byRequired ParamsDescription
projects_locations_vmware_clusters_getSELECTlocationsId, projectsId, vmwareClustersIdGets details of a single VMware Cluster.
projects_locations_vmware_clusters_listSELECTlocationsId, projectsIdLists VMware Clusters in a given project and location.
projects_locations_vmware_clusters_createINSERTlocationsId, projectsIdCreates a new VMware user cluster in a given project and location.
projects_locations_vmware_clusters_deleteDELETElocationsId, projectsId, vmwareClustersIdDeletes a single VMware Cluster.
projects_locations_vmware_clusters_patchUPDATElocationsId, projectsId, vmwareClustersIdUpdates the parameters of a single VMware cluster.
projects_locations_vmware_clusters_enrollEXEClocationsId, projectsIdEnrolls 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_query_version_configEXEClocationsId, projectsIdQueries the VMware user cluster version config.
projects_locations_vmware_clusters_unenrollEXEClocationsId, projectsId, vmwareClustersIdUnenrolls 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.

SELECT examples

Lists VMware Clusters in a given project and location.

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

INSERT example

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

/*+ create */
INSERT INTO google.gkeonprem.vmware_clusters (
locationsId,
projectsId,
name,
adminClusterMembership,
description,
onPremVersion,
etag,
annotations,
controlPlaneNode,
antiAffinityGroups,
storage,
networkConfig,
loadBalancer,
vcenter,
dataplaneV2,
vmTrackingEnabled,
autoRepairConfig,
authorization,
enableControlPlaneV2,
binaryAuthorization,
upgradePolicy,
disableBundledIngress
)
SELECT
'{{ locationsId }}',
'{{ projectsId }}',
'{{ name }}',
'{{ adminClusterMembership }}',
'{{ description }}',
'{{ onPremVersion }}',
'{{ etag }}',
'{{ annotations }}',
'{{ controlPlaneNode }}',
'{{ antiAffinityGroups }}',
'{{ storage }}',
'{{ networkConfig }}',
'{{ loadBalancer }}',
'{{ vcenter }}',
'{{ dataplaneV2 }}',
{{ vmTrackingEnabled }},
'{{ autoRepairConfig }}',
'{{ authorization }}',
{{ enableControlPlaneV2 }},
'{{ binaryAuthorization }}',
'{{ upgradePolicy }}',
{{ disableBundledIngress }}
;

UPDATE example

Updates a vmware_clusters resource.

/*+ update */
UPDATE google.gkeonprem.vmware_clusters
SET
name = '{{ name }}',
adminClusterMembership = '{{ adminClusterMembership }}',
description = '{{ description }}',
onPremVersion = '{{ onPremVersion }}',
etag = '{{ etag }}',
annotations = '{{ annotations }}',
controlPlaneNode = '{{ controlPlaneNode }}',
antiAffinityGroups = '{{ antiAffinityGroups }}',
storage = '{{ storage }}',
networkConfig = '{{ networkConfig }}',
loadBalancer = '{{ loadBalancer }}',
vcenter = '{{ vcenter }}',
dataplaneV2 = '{{ dataplaneV2 }}',
vmTrackingEnabled = true|false,
autoRepairConfig = '{{ autoRepairConfig }}',
authorization = '{{ authorization }}',
enableControlPlaneV2 = true|false,
binaryAuthorization = '{{ binaryAuthorization }}',
upgradePolicy = '{{ upgradePolicy }}',
disableBundledIngress = true|false
WHERE
locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}'
AND vmwareClustersId = '{{ vmwareClustersId }}';

DELETE example

Deletes the specified vmware_clusters resource.

/*+ delete */
DELETE FROM google.gkeonprem.vmware_clusters
WHERE locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}'
AND vmwareClustersId = '{{ vmwareClustersId }}';