The end of a pod's log, as text
GET/api/namespaces/:namespace/pods/:name/logs
Permission: pods:logs in the namespace of the path (permissions).
Not followed: returns what is there now. At most 10 000 lines and 5 MiB; a cut log
has the header X-OpenConsole-Truncated: true (cut at a line end). To follow a log live,
use the WebSocket below. Audited as pod.logs.
Request
Responses
- 200
- 400
- 403
- 404
- 429
Log lines.
Response Headers
X-OpenConsole-Truncated
"true" when the 5 MiB limit cut the log.
Bad parameter, or container_not_found / previous_unavailable / not_ready.
forbidden (your roles), or cluster_forbidden: OpenConsole's own account on the cluster may not read the pod or its log (its ClusterRole).
pod_not_found
rate_limited: too many log requests at once.