Through the vSphere Automation APIs, you can enable a vSphere cluster for managing Kubernetes workloads. A cluster configured with NSX supports running vSphere Pod and Tanzu Kubernetes clusters.
To enable a vSphere cluster for Kubernetes workload management, you use the services under the namespace_management package.
Prerequisites
-
Verify that your environment meets the system requirements for enabling vSphere IaaS control plane on the cluster. For more information about the requirements, see the vSphere IaaS Control Plane Concepts and Planning documentation.
-
Verify that the NSX is installed and configured. See Configuring NSX for vSphere IaaS control plane.
-
Create storage policies for the placement of pod ephemeral disks, container images, and Supervisor control plane cache.
-
Verify that DRS is enabled in fully automated mode and HA is also enabled on the cluster.
-
Configure shared storage for the cluster. Shared storage is required for vSphere DRS, HA, and storing persistent volumes of containers.
-
Verify that the user who you use to access the vSphere Automation services has the Modify cluster-wide configuration privilege on the cluster.
-
Create a subscribed content library on the vCenter Server system to accommodate the VM image that is used for creating the nodes of the Tanzu Kubernetes clusters.
Procedure
Results
A task runs on vCenter Server for turning the cluster into a Supervisor. Once the task completes, Kubernetes control plane nodes are created on the hosts that are part of the cluster enabled with vSphere IaaS control plane. Now you can create vSphere Namespaces.
What to do next
Create and configure namespaces on the Supervisor. See Create a vSphere Namespace.