{"id":38805407,"url":"https://github.com/aenix-io/kubectl-ps","last_synced_at":"2026-01-17T12:50:09.543Z","repository":{"id":301584616,"uuid":"1009728416","full_name":"aenix-io/kubectl-ps","owner":"aenix-io","description":"Command kubectl-ps is a kubectl plugin that prints ps-style resource tables for pods, nodes and namespaces.","archived":false,"fork":false,"pushed_at":"2025-06-27T16:49:22.000Z","size":18,"stargazers_count":17,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-20T10:23:15.888Z","etag":null,"topics":["cli","kubectl","kubectl-plugin","kubectl-plugins","kubernetes"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aenix-io.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-06-27T15:57:41.000Z","updated_at":"2025-07-02T14:31:10.000Z","dependencies_parsed_at":"2025-06-27T16:48:01.948Z","dependency_job_id":"7dcba849-cefa-476a-82db-0dc44f8a3fee","html_url":"https://github.com/aenix-io/kubectl-ps","commit_stats":null,"previous_names":["aenix-io/kubectl-ps"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/aenix-io/kubectl-ps","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aenix-io%2Fkubectl-ps","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aenix-io%2Fkubectl-ps/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aenix-io%2Fkubectl-ps/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aenix-io%2Fkubectl-ps/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aenix-io","download_url":"https://codeload.github.com/aenix-io/kubectl-ps/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aenix-io%2Fkubectl-ps/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28508630,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T11:50:55.898Z","status":"ssl_error","status_checked_at":"2026-01-17T11:50:55.569Z","response_time":85,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","kubectl","kubectl-plugin","kubectl-plugins","kubernetes"],"created_at":"2026-01-17T12:50:09.443Z","updated_at":"2026-01-17T12:50:09.520Z","avatar_url":"https://github.com/aenix-io.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# kubectl-ps\n\n`kubectl-ps` is a lightweight **kubectl plugin** that shows processes-style\ntables (ala `ps aux`) for Pods, Nodes and Namespaces with fully-customisable\nresource columns.\n\n- **Zero server-side components.**  \n  Reads live data via the Kubernetes API and, when available, the\n  `metrics-server`.\n- **Flexible column set.**  \n  Mix any combination of *memory* and *CPU* metrics, choose request/limit/usage,\n  add percentages or free/available columns.\n- **Human-readable or raw units.**  \n  Switch between Gi/Mi, raw bytes or terse “3.2G / 850M”.\n- **Totals \u0026 sorting.**  \n  Sort by any metric (descending by default) and append an aggregated `TOTAL`\n  row.\n- **Single static binary.**  \n  Build once, drop into `$PATH`, done.\n\n---\n\n### Install\n\n```bash\ngo install github.com/aenix-io/kubectl-ps@latest\n```\n\n### Quick start\n\n```bash\n# CPU usage vs requests for pods, include node column\nkubectl ps pods curn\n\n# Memory requests / limits / percent for all namespaces\nkubectl ps ns mrlp -A\n\n# Show allocatable, available and percent on nodes\nkubectl ps nodes cmafprl -t\n```\n\n### Usage:\n\n```bash\nUsage:\n    kubectl ps \u003cpods|nodes|namespaces\u003e \u003cflags\u003e [options]\n\nScopes:\n    pods | nodes | namespaces\n\nMetric flags:\n    m  memory      u  usage\n    c  cpu         r  requests\n    p  percent     l  limits\n                   n  node  (pods only)\n                   f  free  (nodes only)\n                   t  total (nodes only)\n\nOptions:\n    -A                all namespaces / all nodes\n    -n \u003cnamespace\u003e    select namespace\n    -r                reverse sort\n    -h                human-readable units\n    -m                mebibytes\n    -g                gibibytes\n    -b                bytes\n    -t                show TOTAL\n```\n\n\n**Output rules**\n\n- **Columns are sorted by the primary metric** (the first metric letter on the first family letter).\n- **% always shows `second % first`** of the two numeric columns printed\nimmediately before it; if it appears first, the command falls back to the\nfirst two numeric columns of that family.\n- **Use -t** to show total row with aggregated values for all rows.\n\n\n## Examples\n\nMemory and CPU usage with requests for pods, including total row, sorted by memory usage:\n\n```console\n$ kubectl ps pod mcurp -n kube-system -t\nNAME                                   STATUS   MEM_USE  MEM_REQ  MEM_USE_REQ  CPU_USE  CPU_REQ  CPU_USE_REQ  AGE\nkube-apiserver-talos-o10-doj           Running  3.59G    512.0M   718%         545      200      272%         28h\nkube-apiserver-talos-xgn-lip           Running  2.62G    512.0M   524%         278      200      139%         28h\nkube-apiserver-talos-qec-cr2           Running  2.08G    512.0M   416%         396      200      198%         16h\nkube-controller-manager-talos-o10-doj  Running  267.0M   256.0M   104%         27       50       54%          28h\nkube-scheduler-talos-o10-doj           Running  82.1M    64.0M    128%         5        10       50%          19h\nkube-scheduler-talos-qec-cr2           Running  72.8M    64.0M    114%         5        10       50%          16h\nkube-scheduler-talos-xgn-lip           Running  68.6M    64.0M    107%         4        10       40%          28h\nkube-controller-manager-talos-qec-cr2  Running  37.8M    256.0M   15%          2        50       4%           16h\nkube-controller-manager-talos-xgn-lip  Running  32.4M    256.0M   13%          2        50       4%           28h\ncoredns-cc8bf9fd8-zrf5b                Running  30.8M    70.0M    44%          17       100      17%          28h\ncoredns-cc8bf9fd8-px9dp                Running  26.1M    70.0M    37%          17       100      17%          27h\nTOTAL                                  -        8.90G    2.57G    346%         1298     980      132%         -\n```\n\nCPU usage vs requests and limits for namespaces, sorted by CPU usage:\n\n```console\n$ kubectl ps ns curl -r\nNAME                            STATUS  CPU_USE  CPU_REQ  CPU_LIM  AGE\ntenant-prod                     Active  3123     8431     71825    233d\ntenant-root                     Active  813      3984     23927    234d\nkube-system                     Active  669      980      -        234d\ncozy-system                     Active  478      -        -        234d\ncozy-kubeovn                    Active  429      420      22000    234d\ncozy-monitoring                 Active  359      160      200      234d\ncozy-cilium                     Active  99       -        -        234d\ncozy-linstor                    Active  76       -        -        234d\ncozy-metallb                    Active  49       -        -        234d\ncozy-dashboard                  Active  44       420      -        234d\n```\n\nMemory free vs total on nodes and percentage:\n\n```console\n$ kubectl ps nodes mrtp\nNAME           STATUS  MEM_TOTAL  MEM_REQ  MEM_TOTAL_REQ  AGE\ntalos-o10-doj  Ready   30.52G     32.23G   95%            197d\ntalos-xgn-lip  Ready   30.52G     29.49G   103%           197d\ntalos-qec-cr2  Ready   30.52G     28.28G   108%           234d\n```\n\n## License\n\nApache-2.0, see [LICENSE](LICENSE).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faenix-io%2Fkubectl-ps","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faenix-io%2Fkubectl-ps","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faenix-io%2Fkubectl-ps/lists"}