Administrator CLI Operations
This topic provides information on the administrator CLI operations and their syntax. You must setup and login with the CLI before you can perform these operations.
openshift command is used for starting services that make up the OKD cluster. For example,
openshift start [master|node]. However, it is also an all-in-one command that can perform all the same actions as the
oc adm commands via
openshift cli and
openshift admin respectively.
The administrator CLI differs from the normal set of commands under the developer CLI, which uses the
oc command, and is used more for project-level operations.
The administrator CLI allows interaction with the various objects that are managed by OKD. Many common
oc adm operations are invoked using the following syntax:
$ oc adm <action> <option>
<action>to perform, such as
<option>to perform the action on as well as a value for the option. Options include
Creates a basic .kubeconfig file from client certificates:
$ oc adm create-kubeconfig
Creates a bootstrap project template:
$ oc adm create-bootstrap-project-template
Creates the default bootstrap policy:
$ oc adm create-bootstrap-policy-file