Kubernetes
Get pod logs
Changed onReturns log output from a pod's container. Useful for debugging services.
get/v1/kubernetes/pods/{namespace}/{podName}/logs
Request
- Base URLhttp://kubefwd.internal/api
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
namespacestring required
Kubernetes namespace
podNamestring required
Pod name
Query parameters
contextstring
Kubernetes context (uses current if omitted)
containerstring
Container name (defaults to first container)
tailLinesinteger
Number of lines from end (default 100, max 1000)
sinceTimestring date-time
RFC3339 timestamp to start from (e.g., 2024-01-15T10:30:00Z)
previousboolean
Get logs from previous container instance
timestampsboolean
Include timestamps in log output
Response
Pod logs
Example response
{
"error": {
"code": "NOT_FOUND",
"message": "Service not found"
}
}Changes
- info
added the non-success response with the status
- info
- info
endpoint added
- info