Deleting an OKE Node Pool
Learn how to delete an OKE node pool on Private Cloud Appliance.
Deleting a node pool permanently deletes the node pool. You can't recover a deleted node pool.
- In the Compute Web UI navigation menu, select Containers, then select Kubernetes Clusters.
-
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 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 can't clear 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, go to Creating an OKE Worker Node Pool, select the CLI tab, and see Node and node pool deletion settings.
-
Select Delete.
-
Use the oci ce node-pool delete command and required parameters to delete a node pool.
oci ce node-pool delete --node-pool-id <node-pool_OCID> [OPTIONS]
-
Get the OCID of the node pool that you want to delete:
oci ce node-pool list
-
Run the delete node pool command. You can use the optional
--force option
to delete the node pool without prompting for confirmation.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.
For a complete list of CLI commands, flags, and options, see the Command Line Reference.
-
Use the DeleteNodePool operation to delete a node pool.
For information about using the API and signing requests, see REST APIs and Security Credentials. For information about SDKs, see Software Development Kits and Command Line Interface.