ocne cluster console
Starts an administration console on a node in a Kubernetes cluster.
ocne cluster console
[{-d|--direct}]
{-N|--node} nodename
[{-t|--toolbox}]
[-- command]
Where:
-
{-d|--direct}
-
Starts the console
chroot
ed to the root of the target node's file system. -
{-N|--node} nodename
-
The name of the Kubernetes cluster node where the console is to be started. The name must be one of the nodes listed in the output of a
kubectl get nodes
command. -
{-t|--toolbox}
-
Creates the console using a container image that contains tools useful to diagnose an Oracle Linux system. The container includes tools such as
strace
,tcpdump
,traceroute
, andsos
. -
-- command
-
The command to run in the console. When this option is used, the console connection is closed after the command completes.
Example 4-35 Start an administration console on a node
To start an administration console on a Kubernetes node:
ocne cluster console --node mynode
Example 4-36 Start an administration console chroot
ed to the target node's
root directory
To start an administration console chroot
ed to the root of the
target node's file system:
ocne cluster console --direct --node mynode
Example 4-37 Start an administration console on a node and include the toolbox
To start an administration console on a Kubernetes node and include the debugging toolbox:
ocne cluster console --node mynode --toolbox
Example 4-38 Run a command in an administration console chroot
ed to the
target node's root directory
To run a command, such as ls /proc
, in an administration console
chroot
ed to the target node's root directory:
ocne cluster console --direct --node mynode -- ls /proc