Skip to main content
The kubernetes command group (alias: k8s) manages Kubernetes cluster connections and lets you inspect workloads, namespaces, pods, services, and resource statistics.

kubernetes list

List all registered Kubernetes clusters:
Example output:

kubernetes register

Register a Kubernetes cluster using a kubeconfig file:

kubernetes scan

Run a security and configuration scan against a registered cluster: Synopsis:
Example:

kubernetes sync

Sync the resource inventory for a cluster:

kubernetes resources

List all resources in a cluster: Synopsis:
Example:

Workload inspection

The following subcommands let you inspect specific resource types within a cluster:

Namespaces

Deployments

Pods

Services

Cluster stats

Show an aggregate summary of resource counts and health across all clusters:

kubernetes delete

Remove a cluster from InfraAudit. Historical data is retained; the cluster is no longer scanned:
Registering a Kubernetes cluster requires that InfraAudit can reach the cluster API server from wherever the CLI is running. In-cluster deployments may require additional network configuration.