Skip to content

lookout triage delta

Every abnormal object in one scan — the first call for “anything wrong in this cluster?”: broken/pending pods, readiness that flaps, stalled rollouts, workloads blocked from creating pods at all, node pressure/NPD/preemption, gridlocked PDBs, degraded kube-system add-ons, quotas at their limits, autoscalers that cannot scale.

MCP tool: k8s_triage_delta (MCP profile: triage)

Terminal window
lookout triage delta [flags]
FlagTypeDefaultMeaning
--onlystringpods,nodes,pdb,system,quota,hpacomma-separated finding classes to scan: any subset of pods,nodes,pdb,system,quota,hpa
--restartsint5flag containers restarted at least this many times
--pending-ageduration5mflag Pending pods older than this; also the grace before a not-ready container in a Running pod is flagged. 0 disables the grace. A pod a fresh Warning event explains (FailedScheduling, FailedMount, FailedAttachVolume, FailedCreatePodSandBox, an image pull, or a readiness failure after it had been Ready) is flagged at any age; pods held back by the grace alone are counted in young=
--quota-warnint90warn when a ResourceQuota resource reaches this percent of its hard limit (the hard limit itself is always critical)
--cron-graceduration5mhow late a CronJob activation may be before it counts as missed; absorbs normal controller scheduling latency
--hpa-graceduration5mhow long an HPA’s AbleToScale or ScalingActive condition must have been False before it is flagged; absorbs metrics-server blips
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
pod.crashloopcriticala container is crash looping
pod.imagepullcriticala container cannot pull its image
pod.waitingwarninga container is stuck in an error waiting state (CreateContainerConfigError, InvalidImageName, …)
pod.oomkilledwarninga container’s last termination was an OOM kill
pod.restartswarninga container has restarted at least —restarts times
pod.notreadywarninga container in a Running pod has been not-ready past the —pending-age grace, or at any age when the pod had been Ready and a fresh readiness failure took it down (event=Unhealthy)
pod.probe_flapwarninga Running container’s readiness keeps failing and recovering — flapping, not down: its readiness failures recur within the last 15m without holding it down, its Ready condition changed within the last 3m45s, and it has not restarted since they began. The read-path counterpart of degradation.probe_flap; status alone reads such a pod as down on half the polls and healthy on the other half. Not held back by —pending-age
pod.failedwarningthe pod reached phase Failed
pod.pendingcritical, warningthe pod has been Pending longer than —pending-age with no container-level diagnosis, or at any age when a fresh Warning event says it is failing rather than starting (event=); critical when the scheduler has declared it Unschedulable, which is a capacity or constraint problem rather than latency
workload.replicafailurecriticalthe controller cannot create pods at all (quota, PodSecurity, admission) — no pod exists to diagnose
workload.stalledcriticala Deployment’s Progressing condition is False: the rollout has given up
workload.rolloutcritical, warningreplicas are short of desired; critical when nothing is serving at all
job.failedwarninga Job’s Failed condition is set
cron.missedcritical, warningan unsuspended CronJob’s schedule said to run more than —cron-grace ago and status says it did not; critical once several activations in a row are gone
cron.unparseablewarninga CronJob’s spec.schedule could not be parsed, so its activations cannot be judged at all
node.notreadycriticalthe node’s Ready condition is not True
node.pressurecriticalthe node reports Memory/Disk/PID pressure
node.conditioncritical, warninga non-standard node condition is True — NPD and its cousins publish problems that way
node.cordonedwarningthe node is unschedulable but still holds pods: a stuck drain or a forgotten maintenance step
node.preemptcritical, warning, infoa reclaim taint marks the node for termination; severity tracks how imminent
pdb.gridlockedcritical, warningthe budget permits no disruptions; critical when healthy pods are already below the required minimum
addon.degradedcritical, warninga kube-system add-on (dns, proxy, cni, csi, metrics, connectivity) is short of replicas; critical when none are available
quota.nearwarninga ResourceQuota resource is at or past —quota-warn percent of its hard limit
quota.exhaustedcriticala ResourceQuota resource is at its hard limit: the next create is rejected
hpa.scale_failedwarningan HPA’s AbleToScale condition has been False past —hpa-grace: the controller cannot read or write its target’s scale
hpa.scaling_inactivewarningan HPA’s ScalingActive condition has been False past —hpa-grace (a failed metric fetch, an invalid selector; not a deliberate scale-to-zero): it cannot compute a replica count
cluster.autopilot_idleinfoan Autopilot cluster with no workloads of its own, scaled to 0 nodes by design: its GKE system pods wait for the first workload, and this one finding replaces every finding that state causes in GKE-managed namespaces
autoscaler.scaleup_blockedcritical, warning, infopods are unschedulable and this says why the cluster autoscaler has not added a node: the node pools that cannot grow (autoscaling off, maximum 0) and the autoscaler’s own recent refusals, from the cloud provider; critical when no pool can grow, when the only pools that can grow have no node the pods could use (a compute class’s pools, for pods that select no class) and node auto-provisioning is off, or when no node is Ready; warning when a pool is blocked or the autoscaler refused; info when neither. With Nodes and Pods read cluster-wide it also accounts for each node against the pending pods: the taints they do not tolerate (one set on a node alone, with who set it and when), the room left where they could go, the largest requests there, and DaemonSets created in the last 7 days
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
containercontainer the finding is about (init containers prefixed init:)
imageimage reference that failed to pull
restartscontainer restart count
exit_codeexit code of the container’s last termination
last_statereason of the container’s last termination (e.g. OOMKilled)
agehow long the abnormal state has persisted (on pod.probe_flap: since the first readiness failure the kubelet recorded)
eventon pod.pending and pod.notready: the reason of the fresh Warning event that says the pod is failing rather than starting — FailedScheduling, FailedMount, FailedAttachVolume, FailedCreatePodSandBox, ImagePullBackOff (any pull failure) or Unhealthy; the event’s message becomes the finding’s when status has none. Its presence is what reports a pod younger than —pending-age
readinesson pod.probe_flap: the pod’s Ready condition at this read, Ready or NotReady — one sample of a state that keeps changing
last_flipon pod.probe_flap: how long ago the pod’s Ready condition last changed
probe_failureson pod.probe_flap: readiness failures the kubelet’s Unhealthy events recorded — a floor, since the kubelet’s event spam filter stops counting after a burst of 25
period_secondsthe probe’s periodSeconds (default 10); on pod.probe_flap, the readiness probe whose failures were counted
desireddesired replica/scheduled count from spec
readyready count from status
updatedupdated-to-current-revision count from status
availableavailable count from status
failedfailed pod count of a Job
schedulea CronJob’s spec.schedule
expectedthe activation a CronJob should have run and did not
missed_runsactivations missed since the anchor; ≥N when the walk was capped
anchorwhat the missed count was measured from: last_schedule or creation
time_zonea CronJob’s spec.timeZone, when set
last_schedulea CronJob’s status.lastScheduleTime, or never
active_jobsJobs a CronJob still has running
conditionnode condition type that is abnormal; for an HPA, the False condition (AbleToScale=False or ScalingActive=False)
tainttaint key indicating reclaim/drain
podspods affected (behind a cordoned node or a PDB)
healthycurrently healthy pods behind a PDB
requiredpods the PDB requires healthy
addonsystem add-on role: dns, proxy, cni, csi, metrics, connectivity
resourceResourceQuota resource name at or near its limit
usedquota usage from status
hardquota hard limit from status
pctquota usage as percent of the hard limit
scale_targetan HPA’s scaleTargetRef as Kind/name
replicasan HPA’s current replica count, where the failure holds it
audit_reasonthe audit.hpa_cannot_scale reason (HPATargetMissing, HPATargetMissingRequests) that is the structural cause of this failure, when the controller’s message identifies one
nodeson autoscaler.scaleup_blocked and cluster.autopilot_idle: Ready/total Nodes in the cluster, when nodes were read
autopiloton autoscaler.scaleup_blocked and cluster.autopilot_idle: true for a GKE Autopilot cluster, whose capacity the provider manages
poolson autoscaler.scaleup_blocked: every node pool as name (autoscaling bounds, node count, why it cannot grow)
no_scale_upon autoscaler.scaleup_blocked: the autoscaler’s noScaleUp refusals in the window, as [pool: ]reason ×count, most frequent first
windowon autoscaler.scaleup_blocked: how far back autoscaler decisions were read
decisionson autoscaler.scaleup_blocked: why the autoscaler’s decisions could not be read, when they could not
auto_provisioningon autoscaler.scaleup_blocked: enabled|disabled, whether the autoscaler may create new node pools for pods no pool fits (GKE node auto-provisioning). Disabled, pods that select no compute class can only land in the pools that exist; a compute class’s pools take only pods that select it
taintson autoscaler.scaleup_blocked: the node taints no pending pod tolerates, as key=value:effect on the nodes carrying it, operator-set taints first; a compute class’s taint says only pods selecting the class may use those nodes. The message names a taint set on a node alone rather than by its pool, with the managedFields manager and time that last wrote the node’s taints
full_nodeson autoscaler.scaleup_blocked: nodes the pending pods could otherwise use but lack room on, with CPU and memory free of allocatable by requests, and the smallest pending request
largest_requestson autoscaler.scaleup_blocked: the largest CPU requests on those full nodes, a DaemonSet named once (marked when created within the last 7 days)
new_daemonsetson autoscaler.scaleup_blocked: DaemonSets created within the last 7 days, with their per-pod request, node count and age — capacity taken from every node
foldedon cluster.autopilot_idle: how many findings the idle state explains, replaced by this one
namespaceson cluster.autopilot_idle: the GKE-managed namespaces those findings were in
autoscalersummary note: why unschedulable pods could not be explained (no cloud provider, or no permission to read node pools)
youngsummary note: pods left unjudged because they are younger than the —pending-age grace (default 5m) — Pending, or Running with a not-ready container — and no fresh Warning event says why; omitted at 0. Those pods are too new to call, not healthy: lookout triage delta --pending-age=0 judges them now

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 delta
lookout triage delta --namespace=prod --only=pods,quota
lookout triage delta --only=nodes --format=json