Read pod logs, events, and metrics directly from a cluster API server.Your agent can inspect the current setup, prepare the connection and test access. You choose the account and resource scope, approve provider consent when needed, and authorize any required grants.
Connect Kubernetes so Struct Agent can read pod logs, events and metrics from the intended cluster. Verify the API endpoint and the requested read access.Use the catalog’s current fields, choices and permission requirements. Reuse an existing healthy connection instead of creating a duplicate.An authorized operator runs the generated provider commands after checking the account and scope. Printing them does not apply grants. Preserve generated identifiers (such as an AWS External ID or Snowflake key-pair ID), then run the returned connection command with the real values.Use a ServiceAccount token or kubeconfig with static credentials. For a self-signed cluster, supply its CA certificate through the catalog’s file input. On GKE DNS endpoints, the cluster must permit Kubernetes tokens through DNS; otherwise the connection returns Inspect
Permission catalog version
Inspect access and existing connections
Use a claimed workspace with permission to configure connections.Connect with the CLI
Supply credentials from approved secret storage throughK8S_TOKEN, KUBECONFIG_YAML. The catalog describes which are needed for the selected authentication method. Do not put literal secrets in shell arguments or chat.Print the setup material first:credentials_rejected. Check reachability as well as RBAC.Verify and recover
Use the returned connection ID:ok, health and missing permissions, not only the exit code. struct connections grant-command CONNECTION_ID prints repair instructions where supported; have an authorized operator apply them. For expired OAuth links, start the connection command again and use the new link. Do not reconnect to a different account silently.Verify a bounded operation for the requested job. Connection health proves checked access; it does not prove telemetry arrival, an investigation or alert delivery.What Struct reads
Pod logs, Kubernetes events such as restarts and OOM kills, and pod status by namespace. Pod CPU and memory also need Metrics Server in the cluster; without it, the metrics tool returnsavailable: false with a reason.Permissions
The ServiceAccount token needs get, list and watch on pods, pods/log, namespaces and events, plus get and list on pod metrics (metrics.k8s.io) for pod CPU and memory. The setup command grants both.Pods, logs and events
Read pod logs, Kubernetes events such as restarts and OOM kills, and pod status by namespace.Granted by:ClusterRole log-reader.Pod metrics
Read pod CPU and memory from the metrics API. Only needed if you want pod metrics; without it, they show as unavailable.How to grant
Create a read-only ServiceAccount
Create a read-only ServiceAccount
2026-11-04.1. See permission changes.