9 Removing a Kubernetes Cluster
WARNING:
Oracle Cloud Native Environment 1.8 is now in Sustaining Support. See Oracle Open Source Support Policies for more information. New security patches and bug fixes are no longer provided for this software.
Migrate applications and data to Oracle Cloud Native Environment Release 2.<latest> as soon as possible.
To remove a Kubernetes cluster, use the olcnectl module uninstall command.
For example, to uninstall the Kubernetes module named mycluster:
olcnectl 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.
Tip:
If you reinstall a Kubernetes module on hosts that were used in a previous Kubernetes
cluster, run the sudo kubeadm reset -f command on each node before you
redeploy the module.