mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-07 00:48:01 +01:00
65 lines
1.2 KiB
Plaintext
65 lines
1.2 KiB
Plaintext
// Module included in the following assemblies:
|
|
//
|
|
// * cli_reference/openshift_cli/administrator-cli-commands.adoc
|
|
|
|
[id="cli-cluster-management-commands_{context}"]
|
|
= Cluster management CLI commands
|
|
|
|
== inspect
|
|
|
|
Gather debugging information for a particular resource.
|
|
|
|
[NOTE]
|
|
====
|
|
This command is experimental and might change without notice.
|
|
====
|
|
|
|
.Example: Collect debugging data for the OpenShift API server cluster Operator
|
|
[source,terminal]
|
|
----
|
|
$ oc adm inspect clusteroperator/openshift-apiserver
|
|
----
|
|
|
|
== must-gather
|
|
|
|
Bulk collect data about the current state of your cluster to debug issues.
|
|
|
|
[NOTE]
|
|
====
|
|
This command is experimental and might change without notice.
|
|
====
|
|
|
|
.Example: Gather debugging information
|
|
[source,terminal]
|
|
----
|
|
$ oc adm must-gather
|
|
----
|
|
|
|
== top
|
|
|
|
Show usage statistics of resources on the server.
|
|
|
|
.Example: Show CPU and memory usage for pods
|
|
[source,terminal]
|
|
----
|
|
$ oc adm top pods
|
|
----
|
|
|
|
.Example: Show usage statistics for images
|
|
[source,terminal]
|
|
----
|
|
$ oc adm top images
|
|
----
|
|
|
|
////
|
|
== upgrade
|
|
|
|
Upgrade the cluster to a newer version.
|
|
|
|
.Example: Upgrade the cluster to version 4.1.1
|
|
[source,terminal]
|
|
----
|
|
$ oc adm upgrade --to=4.1.1
|
|
----
|
|
////
|