This documentation is for a release that is no longer maintained
See documentation for the latest supported version 3 or the latest supported version 4.Este contenido no está disponible en el idioma seleccionado.
Chapter 5. Administrator CLI Operations
5.1. Overview Copiar enlaceEnlace copiado en el portapapeles!
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.
The oadm
command is used for administrator CLI operations, which is a symlink that can be used on hosts that have the openshift
binary, such as a master. If you are on a workstation that does not have the openshift
binary, you can also use oc adm
in place of oadm
, if oc
is available.
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.
5.2. Common Operations Copiar enlaceEnlace copiado en el portapapeles!
The administrator CLI allows interaction with the various objects that are managed by OpenShift Enterprise. Many common oadm
operations are invoked using the following syntax:
oadm <action> <option>
$ oadm <action> <option>
This specifies:
-
An
<action>
to perform, such asnew-project
orrouter
. -
An available
<option>
to perform the action on as well as a value for the option. Options include--output
.
5.3. Basic CLI Operations Copiar enlaceEnlace copiado en el portapapeles!
5.3.1. new-project Copiar enlaceEnlace copiado en el portapapeles!
Creates a new project:
oadm new-project <project_name>
$ oadm new-project <project_name>
5.3.2. policy Copiar enlaceEnlace copiado en el portapapeles!
Manages authorization policies:
oadm policy
$ oadm policy
5.3.3. groups Copiar enlaceEnlace copiado en el portapapeles!
Manages groups:
oadm groups
$ oadm groups
5.4. Install CLI Operations Copiar enlaceEnlace copiado en el portapapeles!
5.4.1. router Copiar enlaceEnlace copiado en el portapapeles!
Installs a router:
oadm router <router_name>
$ oadm router <router_name>
5.4.2. ipfailover Copiar enlaceEnlace copiado en el portapapeles!
Installs an IP failover group for a set of nodes:
oadm ipfailover <ipfailover_config>
$ oadm ipfailover <ipfailover_config>
5.4.3. registry Copiar enlaceEnlace copiado en el portapapeles!
Installs an integrated container registry:
oadm registry
$ oadm registry
5.5. Maintenance CLI Operations Copiar enlaceEnlace copiado en el portapapeles!
5.5.1. build-chain Copiar enlaceEnlace copiado en el portapapeles!
Outputs the inputs and dependencies of any builds:
oadm build-chain <image_stream>[:<tag>]
$ oadm build-chain <image_stream>[:<tag>]
5.5.2. manage-node Copiar enlaceEnlace copiado en el portapapeles!
Manages nodes. For example, list or evacuate pods, or mark them ready:
oadm manage-node
$ oadm manage-node
5.5.3. prune Copiar enlaceEnlace copiado en el portapapeles!
Removes older versions of resources from the server:
oadm prune
$ oadm prune
5.6. Settings CLI Operations Copiar enlaceEnlace copiado en el portapapeles!
5.6.1. config Copiar enlaceEnlace copiado en el portapapeles!
Changes kubelet configuration files:
oadm config <subcommand>
$ oadm config <subcommand>
5.6.2. create-kubeconfig Copiar enlaceEnlace copiado en el portapapeles!
Creates a basic .kubeconfig file from client certificates:
oadm create-kubeconfig
$ oadm create-kubeconfig
5.6.3. create-api-client-config Copiar enlaceEnlace copiado en el portapapeles!
Creates a configuration file for connecting to the server as a user:
oadm create-api-client-config
$ oadm create-api-client-config
5.7. Advanced CLI Operations Copiar enlaceEnlace copiado en el portapapeles!
5.7.1. create-bootstrap-project-template Copiar enlaceEnlace copiado en el portapapeles!
Creates a bootstrap project template:
oadm create-bootstrap-project-template
$ oadm create-bootstrap-project-template
5.7.2. create-bootstrap-policy-file Copiar enlaceEnlace copiado en el portapapeles!
Creates the default bootstrap policy:
oadm create-bootstrap-policy-file
$ oadm create-bootstrap-policy-file
5.7.3. create-login-template Copiar enlaceEnlace copiado en el portapapeles!
Creates a login template:
oadm create-login-template
$ oadm create-login-template
5.7.4. overwrite-policy Copiar enlaceEnlace copiado en el portapapeles!
Resets the policy to the default values:
oadm overwrite-policy
$ oadm overwrite-policy
5.7.5. create-node-config Copiar enlaceEnlace copiado en el portapapeles!
Creates a configuration bundle for a node:
oadm create-node-config
$ oadm create-node-config
5.7.6. ca Copiar enlaceEnlace copiado en el portapapeles!
Manages certificates and keys:
oadm ca
$ oadm ca
5.8. Other CLI Operations Copiar enlaceEnlace copiado en el portapapeles!
5.8.1. version Copiar enlaceEnlace copiado en el portapapeles!
Displays the version of the indicated object:
oadm version
$ oadm version
5.8.2. help Copiar enlaceEnlace copiado en el portapapeles!
Displays help about any command:
oadm help <command>
$ oadm help <command>