lookout audit upgrades
Upgrade and patch readiness, read from the cloud provider and cluster upgrade-blocker catalogue: how far the control plane and its node pools are behind what the provider publishes (or —target-version), whether anything is set up to close that gap on its own — release channel, node auto-upgrade and auto-repair, a maintenance window, active maintenance exclusions, node images on the removed Docker runtime, and upgrade notifications — plus in-cluster upgrade blockers (deprecated/removed APIs in use, fail-closed admission webhooks on upgrade-critical paths, and PodDisruptionBudgets that allow zero disruptions during node drain). Without a provider capability or —target-version it reports an explicit unavailable rather than silence.
MCP tool: k8s_audit_upgrades (MCP profile: audit)
lookout audit upgrades [flags]| Flag | Type | Default | Meaning |
|---|---|---|---|
--target-version | string | — | target Kubernetes version (e.g. 1.32 or 1.32.1-gke.1000) to evaluate upgrade readiness and API removals against, overriding the provider’s published target |
--policy | string | — | path to a YAML posture policy file |
--profile | string | — | built-in posture profile: default|strict|onboarding|gke-autopilot |
--only | string | — | comma-separated check kind or kind/reason globs to run exclusively |
--skip | string | — | comma-separated check kind or kind/reason globs to skip |
--min-severity | string | — | minimum finding severity to emit: info|warning|critical |
--set | string | — | comma-separated check parameter overrides (<kind>.<param>=<val>) |
Common flags (every lookout command)
Section titled “Common flags (every lookout command)”| Flag | Type | Default | Meaning |
|---|---|---|---|
--namespace | string | — | limit the scan to one namespace |
-A | bool | — | scan all namespaces |
--workload | string | — | target one workload as <Kind>/<namespace>/<name>, e.g. Deployment/prod/api |
--since | duration | — | how far back to look (0 = command default) |
--format | string | logfmt | output format: logfmt|json (one record per line either way) |
--timeout | duration | 10s | abort the invocation after this long (exit 1) |
--kubeconfig | string | — | path to a kubeconfig file, instead of $KUBECONFIG / ~/.kube/config |
--kubeconfig-dir | string | — | 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> |
--context | string | — | 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 |
--contexts | string | — | 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> |
--concurrency | int | 4 | maximum concurrent cluster executions when fanning out with —contexts or —kubeconfig-dir |
--google-auth | string | — | 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) |
--exemptions | string | — | 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 |
Finding kinds
Section titled “Finding kinds”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.
| Kind | Severity | Claim |
|---|---|---|
audit.version_behind | critical, warning, info | the control plane or a node pool is behind what the provider publishes, or a node pool has skewed from the control plane; info while the gap is still within the supported skew |
audit.upgrade_unmanaged | warning | nothing will close that gap on its own: no release channel, or node auto-upgrade/auto-repair off |
audit.upgrade_blocked | critical, warning, info | an active maintenance exclusion, a node image on the removed Docker runtime, a removed API in use, a fail-closed upgrade-path webhook, or a zero-disruption PDB will stop or stall the upgrade when it comes |
audit.deprecated_api_in_use | critical, warning | a cluster resource was last applied with a Kubernetes API version that is deprecated or removed in the target minor release |
audit.upgrade_unattended | info | upgrades will happen with nobody watching: no maintenance window, or no upgrade notifications |
cloud.unavailable | info | the cloud capability this check needs is unavailable, so nothing was examined — an explicit degradation record, never silence |
Output fields
Section titled “Output fields”Beyond the shared envelope fields (kind, severity, namespace, kind_of_object, name, reason, message, fingerprint, exempt_reason, exempt_expires):
| Field | Meaning |
|---|---|
cluster | on a node-pool finding: the cluster the pool belongs to, so the record stands alone |
version | the current version of the finding’s subject — the control plane’s, or the node pool’s |
target_version | the version the provider would move this cluster to: its channel’s upgrade target where one is published, otherwise the channel’s default (or —target-version) |
control_plane_version | on a node-pool skew finding: the control-plane version the pool is measured against |
minor_versions_behind | how many minor releases separate the two versions |
channel | the release channel the cluster is subscribed to, and the one whose published versions the comparison used; none when it is subscribed to no channel |
image_type | the provider’s name for the node image the pool runs |
exclusion | the operator’s name for the maintenance exclusion currently in force |
scope | how much of the upgrade stream that exclusion holds back: all-upgrades, minor-upgrades or minor-and-node-upgrades |
ends | when the exclusion lifts, or end-of-support for one that runs until the cluster’s version leaves support |
days_remaining | how much longer the exclusion has left to run |
api_version | on a deprecated-API finding: the deprecated or removed group/version in use |
removed_in | on a deprecated-API finding: the Kubernetes major.minor release that removes the API |
replacement | on a deprecated-API finding: the successor group/version to migrate to |
webhook | on a webhook upgrade-blocker finding: the individual webhook entry within the configuration |
webhook_group | on a webhook upgrade-blocker finding: the upgrade-critical operation group intercepted (drain-eviction, pod-creation, node-lease, kubelet-csr, csi-storage, control-plane-rbac) |
service | on a webhook upgrade-blocker finding: the namespace/name of the backing Service |
timeout_seconds | on a webhook timeout finding: the configured webhook timeout in seconds, or default(10) when unset |
replicas | on a single-replica webhook or PDB finding: the replica count of the backing or protected workload |
min_available | on a PDB upgrade-blocker finding: the configured minAvailable threshold |
max_unavailable | on a PDB upgrade-blocker finding: the configured maxUnavailable threshold |
disruptions_allowed | on a PDB upgrade-blocker finding: the live disruptionsAllowed count |
node_pools | summary note: node pools examined — the cluster itself is the other unit scanned counts |
capability | cloud.unavailable: the provider capability this command needed (cluster-config) |
provider | cloud.unavailable: the provider that was asked |
unavailable | summary-line note: why the cloud read could not be served |
Output contract
Section titled “Output contract”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=
Examples
Section titled “Examples”lookout audit upgradeslookout audit upgrades --target-version=1.32lookout audit upgrades --format=jsonlookout audit upgrades --exemptions=exemptions.yaml