Installing the cluster-compare plugin¶
You can extract the cluster-compare plugin from a container image in the Red Hat container catalog and use it as a plugin to the oc command.
Installing the cluster-compare plugin¶
Install the cluster-compare plugin to compare a reference configuration with a cluster configuration from a live cluster or must-gather data.
Prerequisites
- You have installed the OpenShift CLI (
oc). - You installed
podman. - You have access to the Red Hat container catalog.
Procedure
-
Log in to the Red Hat container catalog by running the following command:
-
Create a container for the
cluster-compareimage by running the following command: -
Copy the
cluster-compareplugin to a directory that is included in yourPATHenvironment variable by running the following command:$ podman cp cca:/usr/share/openshift/<arch>/kube-compare.<rhel_version> <directory_on_path>/kubectl-cluster_compare-
archis the architecture for your machine. Valid values are:linux_amd64linux_arm64linux_ppc64lelinux_s390x
-
<rhel_version>is the version of RHEL on your machine. Valid values arerhel8orrhel9. -
<directory_on_path>is the path to a directory included in yourPATHenvironment variable.
-
Verification
-
View the help for the plugin by running the following command:
The following is example output:
Additional resources