Enable On Compute Cluster Supervisors
Enable the Supervisor on a single vSphere cluster. This operation sets up the Kubernetes instance for the cluster along with worker nodes. A #com.vmware.vcenter.consumption-domains.Zones zone will automatically be created if the specified cluster is not already associated with a vSphere Zone.
To verify if the Supervisor is compatible with this vSphere cluster use: ClusterCompatibility.list.
A Supervisor can be running on one or multiple vSphere Zones, and each vSphere Zone is associated with one or more vSphere Clusters. If a Supervisor running on the specified vSphere Cluster is running on additional vSphere Clusters, this operation will apply to Supervisor components running on the other vSphere Clusters in addition to the specified vSphere Cluster.
To call this API on a Supervisor with multiple vSphere Clusters, use Topology.get to get the vSphere Clusters associated with the given Supervisor. Any cluster from the list returned can be used as the input of this API.
Request
URLURL
Path Parameters
Path Parameters
Identifier for the cluster used to enable the Supervisor Cluster. The parameter must be an identifier for the resource type: ClusterComputeResource.
Header Parameters
Header Parameters
Required session ID, acquired from Create Session API under CIS product
vmware-api-session-id example
"b00db39f948d13ea1e59b4d6fce56389"
Request Body
Specification for configuring the Supervisor and Workloads.
{
"control_plane": {
"network": {
"backing": {
"backing": "NETWORK"
}
}
},
"name": "string",
"workloads": {
"edge": {},
"network": {
"network_type": "NSXT"
}
}
}
Supervisors.EnableSpec.control-plane specifies configuration for the Supervisor control plane.
A Supervisors.EnableSpec.name is a user-friendly identifier for this Supervisor.
Supervisors.EnableSpec.workloads specifies configuration for compute, network, and storage for workloads.
Supervisors.EnableOnComputeClusterSpec.zone describes consumption fault domain zone available to the Supervisor and its workloads. Zone will be created and associated with the cluster. If unset, the zone name will be generated based on the cluster managed object ID. The zone can be managed with the zone api #com.vmware.vcenter.consumption-domains.Zones When clients pass a value of this structure as a parameter, the field must be an identifier for the resource type: com.vmware.vcenter.consumption_domains.Zone. When operations return a value of this structure as a result, the field will be an identifier for the resource type: com.vmware.vcenter.consumption_domains.Zone.
Authentication
Response
Response BodyResponse Body
ID of the Supervisor object being enabled. The result will be an identifier for the resource type: com.vmware.vcenter.namespace_management.supervisor.Supervisor.
Errors
com.vmware.vapi.std.errors.already_exists : if the cluster already has the Supervisor enabled. | com.vmware.vapi.std.errors.invalid_argument : if spec contains any errors. | com.vmware.vapi.std.errors.unsupported : if the specified cluster is not supported for the Supervisor, the cluster’s hosts do not have the required ESX version, or for any other incompatibilities.
com.vmware.vapi.std.errors.unauthorized : if the user does not have Namespaces.Manage privilege.
com.vmware.vapi.std.errors.error : if the system reports an error while responding to the request. | com.vmware.vapi.std.errors.unable_to_allocate_resource : if the specified cluster is not licensed.
‘Default’ means this response is used for all HTTP codes that are not covered individually for this operation.
Code Samples
PowerCLI Client SDK Example
PowerCLI Client SDK All Parameters Example
cURL Command
Vendor Extensions
x-vmw-doc-operation: enable_on_compute_cluster