4.8 Removing a Kubernetes Cluster

If you want to remove a Kubernetes cluster, use the olcnectl module uninstall command. For example, to uninstall the kubernetes module named mycluster:

$ olcnectl --api-server 127.0.0.1:8091 module uninstall --environment-name myenvironment \
  --name mycluster

On each node, the Kubernetes containers are stopped and deleted, the Kubernetes cluster is removed, and the kubelet service is stopped.

Uninstalling a module also removes the module configuration from the Platform API Server. If you uninstall a module and want to reinstall it, you need to create the module again using the olcnectl module create command.

If you reinstall a kubernetes module on hosts that were previously used in a Kubernetes cluster, you may need to run the kubeadm reset -f command on each node before you redeploy the module.