If you destroy the Antrea Kubernetes cluster or delete the Antrea-NSX Interworking Adapter before running the deregisterjob.yaml file, some Antrea data is retained in the NSX inventory.
You can use the instructions in this documentation to clean up the Antrea data from NSX.
Starting with VMware Container Networking™ with Antrea™ version 1.7.0, the antreansxctl command-line utility provides the cluster-cleanup command to clean up leftover Antrea data in the NSX inventory. The antreansxctl utility is a Linux-only executable. So, you require a Linux machine to run this utility.
To learn about the usage of this cluster-cleanup command, see the antreansxctl Command-Line documentation in the VMware Container Networking with Antrea Installation Guide.
In VMware Container Networking™ with Antrea™ versions prior to 1.7.0, the antreansxctl command-line utility is unavailable. In that case, you can run a curl command, as explained in the following procedure. The curl command calls an NSX API to delete the leftover Antrea data from the NSX inventory.
Prerequisites
- You must have the user name and password of the NSX Enterprise Admin user.
- You must be able to connect to NSX Manager UI and API.