Deleting an OKE Node Pool
Deleting a node pool permanently deletes the node pool. You cannot recover a deleted node pool.
Using the Compute Web UI
-
On the dashboard, select Containers / View Kubernetes Clusters (OKE).
-
Select the name of the cluster that contains the node pool that you want to delete.
-
On the cluster details page, scroll to the Resources section, and select Node Pools.
-
For the node pool that you want to delete, select the Actions menu, and select Delete.
-
Confirm the deletion.
-
Enter the name of the node pool to confirm that you want to delete the node pool.
-
Check the box if you want to override the eviction grace duration in the cordon and drain settings for the nodes in the pool.
Use the arrows to decrease or increase the number of minutes of eviction grace duration. See the description of this field in Updating an OKE Node Pool.
You cannot deselect "Force terminate after grace period." Nodes are deleted after their pods are evicted or at the end of the eviction grace duration, even if not all pods are evicted.
For descriptions of cordon and drain and eviction grace duration, see "Node and node pool deletion settings" in "Using the OCI CLI" in Creating an OKE Worker Node Pool.
-
Select the Delete button on the dialog.
-
Using the OCI CLI
-
Get the OCID of the node pool that you want to delete:
oci ce node-pool list
-
Run the delete node pool command.
Example:
$ oci ce node-pool delete --node-pool-id ocid1.nodepool.unique_ID --force
You can use the
--override-eviction-grace-duration
option to set a new value forevictionGraceDuration
for this node pool deletion. See the description of--node-eviction-node-pool-settings
in Creating an OKE Worker Node Pool.