mirror of
https://github.com/containers/kubernetes-mcp-server.git
synced 2025-10-23 01:22:57 +03:00
feat(kubernetes): add support for previousPod container logs (#256)
Add 'previous' parameter to pods_log tool to retrieve logs from terminated containers, equivalent to kubectl logs --previous functionality. This enables debugging of containers that have restarted due to crashes or updates. Signed-off-by: Samuel Masuy <samuel.masuy@goto.com> Co-authored-by: opencode <noreply@opencode.ai>
This commit is contained in:
@@ -317,6 +317,8 @@ Get the logs of a Kubernetes Pod in the current or provided namespace with the p
|
||||
- Namespace to get the Pod logs from
|
||||
- `container` (`string`, optional)
|
||||
- Name of the Pod container to get logs from
|
||||
- `previous` (`boolean`, optional)
|
||||
- Return previous terminated container logs
|
||||
|
||||
### `pods_run`
|
||||
|
||||
|
||||
Reference in New Issue
Block a user