Use the deregisterjob.yaml file that is included with the antrea-interworking-version.zip file to deregister an Antrea Kubernetes cluster from NSX.
Prerequisites
- Your NSX environment must have a base license, which entitles the system to networking features, and a security license that entitles the system to a full access to the distributed firewall feature.
To learn about available base and security licenses, see License Types.
- Open the deregisterjob.yaml file in a text editor and replace the image URLs with any one these container images that are hosted on VMware Harbor Registry.
- projects.registry.vmware.com/antreainterworking/interworking-debian:version
- projects.registry.vmware.com/antreainterworking/interworking-ubuntu:version
- projects.registry.vmware.com/antreainterworking/interworking-photon:version
For version information, see the VMware Container Networking with Antrea release notes at https://docs.vmware.com/en/VMware-Container-Networking-with-Antrea/index.html.
If your Kubernetes cluster does not have Internet access, you can find the container images in the antrea-interworking-version.zip file, which you downloaded before registering the Kubernetes cluster. If the interworking deployment is running in the Kubernetes cluster, the container images are already loaded on the cluster nodes. The deregister job and the interworking deployment use the same container images.
Procedure
What to do next
- In the NSX Manager UI, navigate to .
- Observe that the Antrea Kubernetes cluster is not shown in the inventory.
- To delete the PI user account, navigate to Delete. . Next to the PI user name, click , and then click
- To delete the self-signed certificate, navigate to Delete. . Next to the certificate name, click , and then click
kubectl delete -f interworking.yaml --ignore-not-found
- If you want to reuse the same PI user account and self-signed certificate for re-registering the Antrea Kubernetes cluster, do not delete PI user account and the self-signed certificate from NSX. In this case, no changes are required in the bootstrap-config.yaml.
- If you want to use a new PI user account and self-signed certificate for re-registering the Antrea Kubernetes cluster, delete the old PI user account and the self-signed certificate. Begin the process by creating a self-signed certificate and use this new certificate to create a PI user account. Edit the tls.crt and tsl.key arguments in the bootstrap-config.yaml with the information of this new PI user.