Skip to content

lookout triage list

List what EXISTS in a namespace — kubectl get across every kind at once, one line per object, leading with the <Kind>/<namespace>/<name> target the other read tools take. The first call for a namespace you have not enumerated: the health scans report only what is abnormal and name nothing when a namespace is clean, so they cannot tell you what is in one. An inventory, not a diagnosis — never guess an object’s name, list the namespace. Called with neither kinds nor a namespace it answers with counts per namespace and kind instead of rows: pick the namespace from those, then list it (verbose forces rows).

MCP tool: k8s_list_resources (MCP profile: triage)

Terminal window
lookout triage list [flags]
FlagTypeDefaultMeaning
--kindsstring—comma-separated resource kinds to list, spelled as kubectl spells them (pods, deploy, certificates.cert-manager.io); empty lists the default set — deployments,statefulsets,daemonsets,cronjobs,jobs,pods,services,endpoints,ingresses,configmaps,secrets,persistentvolumeclaims,horizontalpodautoscalers,poddisruptionbudgets,serviceaccounts,networkpolicies,resourcequotas,limitranges — which is every namespaced kind an incident normally involves EXCEPT replicasets (one per Deployment revision; ask for them explicitly)
--maxint500stop after this many rows (objects, or count rows in the whole-cluster default); the summary line reports how many were left out (pass —kinds to narrow instead)
--verbosebool—one row per object even when neither —kinds nor —namespace narrows the listing; without it such a whole-cluster call returns one count row per namespace and kind (the output before #885 was always per object)
FlagTypeDefaultMeaning
--namespacestring—limit the scan to one namespace
-Abool—scan all namespaces
--workloadstring—target one workload as <Kind>/<namespace>/<name>, e.g. Deployment/prod/api
--sinceduration—how far back to look (0 = command default)
--formatstringlogfmtoutput format: logfmt|json (one record per line either way)
--timeoutduration10sabort the invocation after this long (exit 1)
--kubeconfigstring—path to a kubeconfig file, instead of $KUBECONFIG / ~/.kube/config
--kubeconfig-dirstring—directory of kubeconfig files to fan out across (mutually exclusive with —kubeconfig); each finding is stamped with cluster=<label> and the summary reports clusters=<n>
--contextstring—kubeconfig context to read, instead of its current-context. Selects a cluster for THIS invocation only — nothing is written back — so concurrent invocations can target different clusters. Reported as context=<name> in the summary line
--contextsstring—comma-separated kubeconfig contexts to fan out across, or ’*’ for every context in the selected kubeconfig(s) (mutually exclusive with —context); each finding is stamped with cluster=<label> and the summary reports clusters=<n>
--concurrencyint4maximum concurrent cluster executions when fanning out with —contexts or —kubeconfig-dir
--google-authstring—how Google Cloud and GKE DNS requests authenticate: auto (default: honors LOOKOUT_GOOGLE_AUTH, CORE_AGENT_GOOGLE_AUTH, MAST_GOOGLE_AUTH), adc, or injected (static placeholder bearer token, zero GCE metadata lookups)
--exemptionsstring—path to a git-reviewed exemption file (YAML); covered findings are ANNOTATED with their reason and expiry and counted as exempt=<n> in the summary, never dropped

Every kind= this command can emit, and the severities it carries them at. Nothing else appears in its output; a kind absent from a run means the check looked and found nothing. See the finding-kind glossary for the whole vocabulary.

KindSeverityClaim
inventory.objectinfoone object in scope, rendered as kubectl’s default columns for its kind — an aggregated kubectl get, so every row is emitted, healthy or not
inventory.countinfoa whole-cluster listing with neither —kinds nor —namespace (and no —verbose): how many objects of one kind one namespace holds, instead of a row per object — narrow by namespace or kind for the rows
read.unavailableinfoa resource this command reads was refused (RBAC forbidden, e.g. Nodes, Secrets or RBAC objects under the built-in view role) or is not served, so the checks that need it did not run and their silence is not a clean bill; everything else was still verified. The message names the refused verb and resource, whether it is cluster-scoped, whether the built-in view role grants it, and the grant that fixes it; resource= carries the refused resource as resource[.group] — an explicit degradation record, never silence

Beyond the shared envelope fields (kind, severity, namespace, kind_of_object, name, reason, message, fingerprint, exempt_reason, exempt_expires):

FieldMeaning
targetthe object as <Kind>/<namespace>/<name> (<Kind>/<name> when cluster-scoped) — paste it into triage spec, state edges, triage radius or triage workload unchanged
readyready over desired, as kubectl’s READY column: containers for a Pod, replicas for a workload
statuskubectl’s STATUS column verbatim: a Pod’s phase or its blocking container reason, a Job’s condition, a Node’s readiness
restartstotal container restarts of a Pod
up_to_datereplicas on the current revision
availablereplicas counted available
completionsa Job’s succeeded over requested completions
schedulea CronJob’s cron expression
timezonea CronJob’s spec.timeZone, when it sets one
suspend“true” on a suspended CronJob (omitted otherwise)
activea CronJob’s currently running Jobs
last_schedulehow long ago a CronJob last created a Job
typea Service’s type or a Secret’s type
cluster_ipa Service’s cluster IP (“None” for a headless Service)
external_ipa Service’s provisioned load-balancer address, or “pending” for a LoadBalancer that has none yet
portsa Service’s ports as port[:nodePort]/protocol
addresseshow many endpoint addresses an Endpoints object holds (0 means nothing is behind the Service)
classan Ingress’s ingressClassName or a PVC/PV’s storage class
hostsan Ingress’s rule hosts
addressan Ingress’s provisioned load-balancer address
keyshow many keys a ConfigMap or Secret holds — Secret VALUES are never read, only counted
phasestatus.phase of a PVC, PV or Namespace
volumethe PersistentVolume a PVC is bound to
capacitya PVC’s or PV’s storage capacity
access_modesa PVC’s or PV’s access modes, kubectl-abbreviated (RWO, ROX, RWX, RWOP)
claimthe PVC a PersistentVolume is bound to, as <namespace>/<name>
scale_targetan HPA’s scaleTargetRef as <Kind>/<name>
minan HPA’s minimum replicas
maxan HPA’s maximum replicas
replicasan HPA’s current replica count
min_availablea PDB’s spec.minAvailable (count or percentage)
max_unavailablea PDB’s spec.maxUnavailable (count or percentage)
allowed_disruptionshow many pods a PDB currently allows to be evicted
pod_selectora NetworkPolicy’s spec.podSelector; “all” when it is empty, which selects every pod in the namespace
rolesa Node’s node-role.kubernetes.io/* labels, or “none”
versiona Node’s kubelet version
agetime since metadata.creationTimestamp, kubectl-style (45s, 3h20m, 12d)
kindssummary-line note: how many kinds the listing covered
counton inventory.count: how many objects of kind_of_object the namespace holds
counts_onlysummary-line note: “true” when the listing was scoped by neither —kinds nor —namespace, so it returned one inventory.count row per namespace and kind instead of one inventory.object per object; pass either (or —verbose) for the rows
truncatedsummary-line note: how many rows —max left out — objects, which are the LAST kinds of the listing (ordered workloads → routing → configuration for this reason), or count rows, which are the last namespaces alphabetically
skippedsummary-line note: kinds that could not be listed and why, as <Kind>:<reason> (forbidden = the caller may not list it, so its absence from the output is a blind spot, not a fact; each forbidden kind also gets a read.unavailable record naming the grant that fixes it)
namespace_absentsummary-line note: “true” when the listing was empty because the namespace does not exist, which an empty listing alone cannot distinguish from an empty namespace
addons_detectedsummary-line note: well-known cluster add-ons detected from listed objects under -A (cert-manager, config-connector, gatekeeper, gmp, istio, keda)
resourceread.unavailable: the resource that could not be read, as resource[.group]

Output: one finding per line (logfmt; —format=json for one JSON object per line), keys in fixed order; healthy resources emit nothing. The final line is always the summary: scanned= findings= elapsed= — findings=0 with a summary present means “scanned and healthy”; a stream without a summary line is void. Exit 0 data, 1 runtime error (diagnostics on stderr only), 2 usage.

Terminal window
lookout triage list
lookout triage list --namespace=storefront
lookout triage list --namespace=prod --kinds=pods,services,endpoints
lookout triage list --namespace=prod --kinds=replicasets
lookout triage list -A --kinds=ingresses --format=json