Dieser Inhalt ist in der von Ihnen ausgewählten Sprache nicht verfügbar.
Chapter 5. Administrator CLI Operations
5.1. Overview Link kopierenLink in die Zwischenablage kopiert!
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 oc adm command (formerly the oadm command) is used for administrator CLI operations. 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.
Your login may or may not have access to the following administrative commands, depending on your account type.
5.2. Common Operations Link kopierenLink in die Zwischenablage kopiert!
The administrator CLI allows interaction with the various objects that are managed by OpenShift Dedicated. Many common oc adm operations are invoked using the following syntax:
oc adm <action> <option>
$ oc adm <action> <option>
This specifies:
-
An
<action>to perform, such asnew-projectorgroups. -
An available
<option>to perform the action on as well as a value for the option. Options include--output.
When running oc adm commands, you should run them only from the first master listed in the Ansible host inventory file, by default /etc/ansible/hosts.
5.3. Basic CLI Operations Link kopierenLink in die Zwischenablage kopiert!
5.3.1. new-project Link kopierenLink in die Zwischenablage kopiert!
Creates a new project:
oc adm new-project <project_name>
$ oc adm new-project <project_name>
5.3.2. policy Link kopierenLink in die Zwischenablage kopiert!
Manages authorization policies:
oc adm policy
$ oc adm policy
5.3.3. groups Link kopierenLink in die Zwischenablage kopiert!
Manages groups:
oc adm groups
$ oc adm groups
5.4. Maintenance CLI Operations Link kopierenLink in die Zwischenablage kopiert!
5.4.1. build-chain Link kopierenLink in die Zwischenablage kopiert!
Outputs the inputs and dependencies of any builds:
oc adm build-chain <image_stream>[:<tag>]
$ oc adm build-chain <image_stream>[:<tag>]