This topic provides considerations for using the NSX Policy API with Tanzu Kubernetes Grid Integrated Edition (TKGI) on vSphere.
Warning: The NSX Policy API feature is available at 50% of NSX Management Plane API scale. For detailed scale numbers, see NSX 4.0.1 Configuration Limits.
The NSX Policy API is the next-generation interface for integrating with the NSX networking and security framework.
In addition to supporting the NSX Management API, TKGI supports using the NSX Policy API to deploy Tanzu Kubernetes Grid Integrated Edition on vSphere.
If you are planning on using the NSX Policy API, keep in mind that only new deployments of TKGI are supported. You cannot configure an existing installation of TKGI to use the NSX Policy API.
In addition, while all TKGI functionality is supported in both NSX modes, Policy and Management, there are some differences to be aware of when configuring NSX objects for TKGI, and when configuring the BOSH and TKGI tiles. These differences are described in more detail below.
To use the NSX Policy API with your TKGI installation, you must use a supported NSX version. Refer to the Release Notes.
Tanzu Kubernetes Grid Integrated Edition on vSphere with NSX supports several deployment topologies.
Currently Tanzu Kubernetes Grid Integrated Edition on vSphere with NSX Policy API supports all network topologies except the VSS/VDS topology.
To use the NSX Policy API, there are no changes required to the installation of the main NSX components, including NSX Manager and Edge Nodes.
For installation instructions, see Installing Tanzu Kubernetes Grid Integrated Edition on vSphere with NSX Data Center.
To use the NSX Policy API, you must configure the required NSX control plane objects using the NSX Policy API or UI. Specifically, you must configure the Tier-0 Router (called Gateway in the Policy terminology), the Nodes IP Block, the Pods IP Block, and the Floating IP Pool need to be created using the Policy API or UI.
For specific instructions on creating the required objects, see Create the NSX Objects for Kubernetes Clusters Provisioned by TKGI.
When you configure the BOSH Director tile for Tanzu Kubernetes Grid Integrated Edition, you must enable the option vCenter Config > NSX Networking > Use NSX Policy API. See Configure NSX Networking.
Also, when you configure the TKGI tile in Ops Manager, you must enabled Settings > Networking > NSX > Policy API mode. See Configure TKGI Networking.
If you are using the TKGI Management Console, you need to select the Policy API in the TKGI configuration section.
Tanzu Kubernetes Grid Integrated Edition on vSphere with NSX supports the use of Network Profile for modifying specific NSX settings post-installation. A limited number of network profile use cases are not supported when using TKGI with the NSX Policy API.
The Tanzu Kubernetes Grid Integrated Edition on vSphere with NSX Policy API does not support either the “Top Firewall” or the “Bottom Firewall” DFW Section Markers. For more information, see DFW Section Markers.
The Tanzu Kubernetes Grid Integrated Edition on vSphere with NSX Policy API does not support NSGroups if you create the group in a domain other than the default. With the Policy API, a group must be part of a domain. The
default domain is supported, and if you create the group using the NSX Policy interface, the group is automatically put in the
default domain. However, if you use the Policy REST API to create a group in a domain other than the default, it is not supported.