{
 "id": "kubectl-top-pods",
 "kind": "tool",
 "name": "Pod resource use",
 "description": "Show CPU and memory use of the pods in a namespace (kubectl top pods). Needs the metrics server in the cluster.",
 "icon": "tabler:activity",
 "category": "Containers",
 "version": "1.0.0",
 "author": "Hexa Hub",
 "tool": {
  "command": [
   "kubectl",
   "top",
   "pods",
   "?-n",
   "?{{namespace}}"
  ],
  "risk": "inspect",
  "timeout": 60,
  "creds": true,
  "args": [
   {
    "name": "namespace",
    "required": false,
    "pattern": "^[a-z0-9]([a-z0-9-]*[a-z0-9])?$",
    "description": "Namespace (default: the current one)"
   },
   {
    "name": "dir",
    "kind": "path",
    "required": false,
    "description": "Folder to run in, relative to the workspace"
   }
  ]
 }
}
