ocne node update
Updates the staged Oracle Container Host for Kubernetes (OCK) image on a Kubernetes node.
Use the ocne cluster info
command to ensure an updated Oracle Container Host for Kubernetes (OCK) image is staged and ready to install on
a node.
ocne node update
[{-d|--delete-emptydir-data}]
[{-c|--disable-eviction}]
{-N|--node} name
[{-p|--pre-update-mode} mode]
[{-t|--timeout} minutes]
Where:
-
{-d|--delete-emptydir-data}
-
Deletes the pods that use
emptyDir
during node drain. -
{-c|--disable-eviction}
-
Forces pods to be deleted during drain, bypassing
PodDisruptionBudget
. -
{-N|--node} name
-
The name of the node to update, as seen from within Kubernetes. The name must be one of the nodes listed in the output of a
kubectl get nodes
command. -
{-p|--pre-update-mode} mode
-
Sets how to handle the preupdate steps. Options are:
-
default
: Runs the preupdate process and updates the node. This is the default. -
only
: Run the preupdate process, but skip updating nodes. The--node
option isn't required with this setting. -
skip
: Prevents the preupdate process from being run.
-
-
{-t|--timeout} minutes
-
Sets the timeout in minutes. The default is
30
minutes.
Example 4-82 Update a staged OCK image on a node
To update a staged OCK image on a node:
ocne node update --node mynode