Kubernetes Troubleshoot
Read-only Kubernetes diagnostics: pods, logs, events, workloads, services, PVCs and nodes.
What this server provides
Read-only Kubernetes diagnostics: pods, logs, events, workloads, services, PVCs and nodes.
Packages
dockerTransport stdio- KUBECONFIGRequired
Path to the kubeconfig inside the container. Must match the mount destination. There is no fallback to ~/.kube/config and no in-cluster config: a missing, unreadable or malformed file is a startup failure rather than a silent downgrade to an ambient credential.
Default: /kubeconfig - ALLOWED_NAMESPACESRequired
Comma-separated namespaces the server may read, e.g. staging,production. Wildcards (* and all) are rejected at startup, and kube-system and kube-public are stripped even if listed. This is defense-in-depth, not the security boundary — the boundary is the ServiceAccount's RBAC bindings.
Format: string - LOG_LEVELOptional
DEBUG, INFO, WARNING or ERROR. All logging goes to stderr; stdout carries the JSON-RPC stream exclusively.
Default: INFO - API_TIMEOUT_SECONDSOptional
Kubernetes API request timeout. Must be a positive integer.
Default: 30 - MAX_LOG_LINESOptional
Maximum log lines any single get_pod_logs call may return. Must be a positive integer; clamped to a hard ceiling of 1000 with a warning.
Default: 200 - --mount.kubeconfig_pathRequired
Absolute path on the host to a kubeconfig scoped to the diagnostic ServiceAccount. Generate it with scripts/generate-kubeconfig.sh — do not mount an admin kubeconfig. The file must be readable by UID 10001, which the container runs as.
Format: filepath