Before installing IBM Cloud Pak for Integration (CP4I) on an OpenShift Cluster, an administrator needs to verify that the cluster meets the infrastructure prerequisites such as CPU, memory, and overall resource availability.
The most effective way to check real-time resource utilization and capacity is by using the oc adm top nodes command.
This command provides a summary of CPU and memory usage for all nodes in the cluster.
It is part of the OpenShift administrator CLI (oc adm), which is designed for cluster-wide management.
The information is fetched from Metrics Server or Prometheus, giving accurate real-time data.
It helps administrators assess whether the cluster has sufficient resources to support CP4I deployment.
Why is oc adm top nodes the correct answer?Example usage:oc adm top nodes
Example Output:scss
Copy
NAME CPU(cores) CPU% MEMORY(bytes) MEMORY%
worker-node-1 1500m 30% 8Gi 40%
worker-node-2 1200m 25% 6Gi 30%
Why the Other Options Are Incorrect?Option
Explanation
Correct?
A. Use the oc cluster status command to dump the node capacity and utilization statistics for all the nodes.
❌ Incorrect – The oc cluster status command does not exist in OpenShift CLI. Instead, oc status gives a summary of the cluster but does not provide node resource utilization.
❌
B. Use the oc get nodes -o wide command to obtain the capacity and utilization statistics of memory and compute of the nodes.
❌ Incorrect – The oc get nodes -o wide command only shows basic node details like OS, internal/external IPs, and roles. It does not display CPU or memory utilization.
❌
C. Use the oc describe nodes command to dump the node capacity and utilization statistics for all the nodes.
❌ Incorrect – The oc describe nodes command provides detailed information about a node, but not real-time resource usage. It lists allocatable resources but does not give current utilization stats.
❌
Final Answer:✅ D. Use the oc adm top nodes command to obtain the capacity and utilization statistics of memory and compute of the nodes.
IBM Cloud Pak for Integration - OpenShift Infrastructure Requirements
Red Hat OpenShift CLI Reference - oc adm top nodes
Red Hat OpenShift Documentation - Resource Monitoring
IBM Cloud Pak for Integration (CP4I) v2021.2 Administration References: