This is a cache of https://docs.openshift.com/enterprise/3.1/cli_reference/admin_cli_operations.html. It is a snapshot of the page at 2024-11-22T04:36:42.501+0000.
Administrator <strong>cli</strong> Operations | <strong>cli</strong> Reference | OpenShift Enterprise 3.1
×

Overview

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 administrator cli uses the oadm command, and is used for administrator operations. This differs from the developer cli, which uses the oc command, and is used for basic, project-level operations.

Common Operations

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>

This specifies:

  • An <action> to perform, such as new-project or router.

  • An available <option> to perform the action on as well as a value for the option. Options include --output or --credentials.

Basic cli Operations

new-project

Creates a new project:

$ oadm new-project <project_name>

policy

Manages authorization policies:

$ oadm policy

groups

Manages groups:

$ oadm groups

Install cli Operations

router

Installs a router:

$ oadm router <router_name>

ipfailover

Installs an IP failover group for a set of nodes:

$ oadm ipfailover <ipfailover_config>

registry

Installs an integrated Docker registry:

$ oadm registry

Maintenance cli Operations

build-chain

Outputs the inputs and dependencies of any builds:

$ oadm build-chain <image-stream>[:<tag>]

manage-node

Manages nodes. For example, list or evacuate pods, or mark them ready:

$ oadm manage-node

prune

Removes older versions of resources from the server:

$ oadm prune

Settings cli Operations

config

Changes kubelet configuration files:

$ oadm config <subcommand>

create-kubeconfig

Creates a basic .kubeconfig file from client certificates:

$ oadm create-kubeconfig

create-api-client-config

Creates a configuration file for connecting to the server as a user:

$ oadm create-api-client-config

Advanced cli Operations

create-bootstrap-project-template

Creates a bootstrap project template:

$ oadm create-bootstrap-project-template

create-bootstrap-policy-file

Creates the default bootstrap policy:

$ oadm create-bootstrap-policy-file

create-login-template

Creates a login template:

$ oadm create-login-template

overwrite-policy

Resets the policy to the default values:

$ oadm overwrite-policy

create-node-config

Creates a configuration bundle for a node:

$ oadm create-node-config

ca

Manages certificates and keys:

$ oadm ca

Other cli Operations

version

Displays the version of the indicated object:

$ oadm version

help

Displays help about any command:

$ oadm help <command>