OC-ADM-TOP-NODE(1)
π
oc adm top node β oc-adm-top-node(1) bestie edition β¨
Okay bestie, this is the OpenShift CLI manual page for oc adm top node. Itβs giving βletβs peek at node resource usageβ energy, and honestly? Obsessed. π«Ά
π NAME π
oc adm top node β display resource (CPU/memory) usage of nodes. Thatβs the assignment. Iconic. π
πΈ SYNOPSIS πΈ
oc adm top node [OPTIONS]
π¦ DESCRIPTION π¦
Display resource (CPU/memory) usage of nodes. Full stop, bestie.
The top-node command lets you see the resource consumption of nodes. It is literally the main character of βwhat are my nodes eating?β energy. π₯
β¨ OPTIONS β¨
--no-headers=falseβ if present, print output without headers. Bye-bye header row, we love a clean look. π-l,--selector=""β selector (label query) to filter on. It supports'=','==','!=','in','notin'(e.g.-l key1=value1,key2=value2,key3 in (value3)). Matching objects must satisfy all of the specified label constraints. Highkey precise. π--show-capacity=falseβ print node resources based onCapacityinstead ofAllocatable(default)of the nodes. Choose your fighter. π--show-swap=falseβ print node resources related to swap memory. Swap girlies rise. π--sort-by=""β if non-empty, sort the nodes list using the specified field. The field can be either'cpu'or'memory'. Sort responsibly. β--use-protocol-buffers=trueβ enables using protocol-buffers to access Metrics API. Techy slay. π§
𧬠OPTIONS INHERITED FROM PARENT COMMANDS π§¬
--as=""β username to impersonate for the operation. User could be a regular user or a service account in a namespace. Identity moment. π--as-group=[]β group to impersonate for the operation; this flag can be repeated to specify multiple groups. Repeat after me: groups. π--as-uid=""β UID to impersonate for the operation. Numeric bestie behavior. π’--as-user-extra=[]β user extras to impersonate for the operation; this flag can be repeated to specify multiple values for the same key. Extra, but make it authentication. π--cache-dir="/homeless-shelter/.kube/cache"β default cache directory. The path is the path. π--certificate-authority=""β path to a cert file for the certificate authority. Trust issues, but make it TLS. π--client-certificate=""β path to a client certificate file for TLS. Client-certificate realness. π¦--client-key=""β path to a client key file for TLS. Keep it secret, keep it safe. π--cluster=""β the name of the kubeconfig cluster to use. Cluster selection energy. π--context=""β the name of the kubeconfig context to use. Context is everything, literally. β¨--disable-compression=falseβ if true, opt-out of response compression for all requests to the server. No squish. π«Ά--insecure-skip-tls-verify=falseβ if true, the serverβs certificate will not be checked for validity. This will make your HTTPS connections insecure. π¨ Bestie, that is the whole warning. Do not play. π--kubeconfig=""β path to the kubeconfig file to use for CLI requests. Point me to the config. π--kuberc=""β path to the kuberc file to use for preferences. This can be disabled by exportingKUBECTL_KUBERC=falsefeature gate or turning off the featureKUBERC=off. Preferences lore. π§--match-server-version=falseβ require server version to match client version. Version check, but demanding. π-n,--namespace=""β if present, the namespace scope for this CLI request. Namespace my beloved. π--profile="none"β name of profile to capture. One of(none|cpu|heap|goroutine|threadcreate|block|mutex). Pick your profile. π₯--profile-output="profile.pprof"β name of the file to write the profile to. File goes brrr. π--request-timeout="0"β the length of time to wait before giving up on a single server request. Non-zero values should contain a corresponding time unit (e.g.1s,2m,3h). A value of zero means don't timeout requests. Timeout boundaries, periodt. β³-s,--server=""β the address and port of the Kubernetes API server. Server address unlocked. π--tls-server-name=""β server name to use for server certificate validation. If it is not provided, the hostname used to contact the server is used. TLS name check, cute. π--token=""β bearer token for authentication to the API server. Token moment. π--user=""β the name of the kubeconfig user to use. User selection, slay. π--warnings-as-errors=falseβ treat warnings received from the server as errors and exit with a non-zero exit code. Warnings said βnot today.β π
π EXAMPLE π
# Show metrics for all nodes
oc adm top node
# Show metrics for a given node
oc adm top node NODE_NAME
π SEE ALSO π
Peep also: oc-adm-top(1), β cross-reference bestie, mwah. π«Ά
π HISTORY π
June 2016 β Ported from the Kubernetes man-doc generator. Thatβs the origin story, no cap. π§
π cute sign-off: Openshift β Openshift CLI User Manuals β OC ADM TOP(1) β June 2016. mwah, bestie π«Ά
π¦ where this page comes from
- nixpkgs unstable: openshift 4.22.0-202605222050
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms