Skip to content

KubeBuddy CLI

CLI

KubeBuddy CLI is the local scanning tool for Kubernetes and AKS. Run it from PowerShell or Docker, generate HTML and JSON reports, and keep your cluster untouched while you inspect it properly.

What It Does

  • Scans Kubernetes and AKS from outside the cluster
  • Finds node, pod, workload, network, RBAC, and storage issues
  • Supports AKS best-practice checks when you need provider-specific coverage
  • Generates HTML, JSON, and terminal output from the same run
  • Pulls Prometheus metrics when available for richer diagnostics

Choose Your Runtime

PowerShell

Use the module to:

  • monitor node health and usage
  • detect failing pods, restart loops, and stuck jobs
  • review Kubernetes events by severity
  • inspect RBAC roles and security config
  • generate HTML, JSON, or text output

PowerShell Usage

Docker

Use Docker to:

  • run scans without installing PowerShell locally
  • mount kubeconfig for access to any cluster
  • generate HTML, JSON, or TXT output for automation
  • run AKS-specific checks with the required credentials

Docker Usage

AI Recommendations

KubeBuddy can enrich findings with AI-generated guidance when you provide an OpenAI API key.

Set:

$env:OpenAIKey = "<your-openai-api-key>"

AI guidance can appear in:

  • HTML reports
  • text output
  • JSON report recommendation fields