All Tools View Categories About Contact Privacy

kubectl top Command Reference

Live CPU and memory usage for nodes and pods - the essential kubectl top commands.

Runs entirely in your browser - nothing is uploaded and no cluster connection is made. This is a static reference.
    Matching kubectl top commands will appear here.

    About kubectl top Command Reference

    kubectl top is the fastest way to see live resource usage on a cluster. This reference collects the most useful kubectl top invocations for nodes and pods, including sorting and per-container breakdowns.

    Filter the list to find the exact command, then copy it. Everything is a static reference that runs locally.

    Features

    • Node usage - top node with sort options.
    • Pod usage - top pod with namespace scope.
    • Containers - --containers breakdown.
    • Filter - quickly find a command.
    • Copy / Download / Print - take commands anywhere.

    How to Use

    1. Read the reference tables for nodes and pods.
    2. Filter by keyword.
    3. Copy the command you need.

    Examples

    Example 1 - nodes. kubectl top node --sort-by=memory.

    Example 2 - pods. kubectl top pod -n prod --containers.

    Benefits

    • Fast lookup - common top commands in one place.
    • Accurate - real kubectl syntax.
    • Private - runs in the browser.
    • Copy, download or print - get commands where you need them.

    Frequently Asked Questions

    What does kubectl top do?
    kubectl top shows live CPU and memory usage for nodes and pods. It requires the metrics-server to be installed in the cluster.
    How do I see node usage?
    Run kubectl top node. Add a node name to scope it, or --sort-by to order by cpu or memory.
    How do I see pod usage?
    Run kubectl top pod. Use -n to scope the namespace, --containers to break down per container, and --sort-by for ordering.
    Why is top empty?
    Typically metrics-server is missing or not yet aggregated data. The reference lists the command; actual output needs a live cluster.
    Does this connect to a cluster?
    No. This is a static reference; nothing is uploaded and no connection is made.
    Can I copy commands?
    Yes. Filter the list and copy, download, or print the commands.