lookout net probe-from
PRIVILEGED, opt-in: run net probe’s DNS/TCP/HTTP checks from inside one named pod’s network — the caller’s vantage, for faults only that pod sees — by adding an ephemeral container that stays in the pod’s spec; refused without the deploy-probe/ grant.
MCP tool: k8s_net_probe_from (privileged: never on the default MCP surface or in any profile; the operator enables it with its own lookout mcp flag, see lookout mcp --help)
lookout net probe-from [flags]| Flag | Type | Default | Meaning |
|---|---|---|---|
--pod | string | — | required: the one pod to probe from, as <namespace>/<name>; no selectors, no -A |
--image | string | — | required: the lookout release image the probe container runs, pinned by digest (<repo>@sha256:<digest>; tags are refused) |
--dns | string | — | comma-separated names to resolve (e.g. api.prod.svc.cluster.local,db.example.com) |
--tcp | string | — | comma-separated host:port endpoints to connect to (e.g. api.prod.svc:8080,10.0.0.5:5432) |
--http | string | — | comma-separated http(s) URLs to GET; redirects are reported (3xx), not followed, and response bodies are never read into findings |
--probe-timeout | duration | 5s | per-probe timeout; raise —timeout too when probing many slow targets (it caps the whole invocation) |
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 | 1m0s | 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 |
|---|---|---|
probe.dns | critical, warning, info | the result of one DNS resolution: info when it resolved, warning on timeout, critical otherwise — a probe result is always emitted, success included, because the answer to “can this be reached” is the point of the command |
probe.tcp | critical, warning, info | the result of one TCP connect: info when it connected, warning on timeout, critical otherwise |
probe.http | critical, warning, info | the result of one HTTP GET (redirects reported, not followed): info on success, warning on timeout or 4xx, critical otherwise |
probe.refused | info | no probe ran and the pod was not changed: this identity lacks a grant the command needs (the message names it, in the shared refusal wording), an admission policy rejected the probe container (reason=AdmissionDenied), the admission policy that guards the grant is missing or does not cover this identity so the grant is unguarded (reason=PolicyMissing), or the pod cannot be probed safely (not Running, hostNetwork, or already holding the per-pod limit of lookout probe containers); reason says which |
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 |
|---|---|
vantage | where the probe ran from: pod:<namespace>/<name>, never local — a probe-from answer never falls back to lookout’s own vantage |
probe_container | the ephemeral container that ran the probe; it stays in the pod’s spec for the pod’s lifetime, so this ties a result to that record |
ips | probe.dns: resolved addresses, sorted, comma-separated |
latency | how long the probe took: DNS resolution / TCP connect / full HTTP exchange |
status | probe.http: HTTP status code of the (unfollowed) response |
content_length | probe.http: Content-Length the server declared (body is discarded unread; omitted when unknown) |
error_class | failed probes: nxdomain|timeout|refused|unreachable|reset|cert|http_4xx|http_5xx|error |
dropped | summary line: records or fields the probe container wrote that are not net probe results, and so were not forwarded (absent when none) |
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 net probe-from --pod=shop/frontend-7d9 --image=ghcr.io/go-steer/lookout@sha256:<digest> --tcp=cart.shop.svc:7070lookout net probe-from --pod=shop/frontend-7d9 --image=ghcr.io/go-steer/lookout@sha256:<digest> --dns=cart.shop.svc.cluster.local --http=http://cart.shop.svc:7070/healthz