[docs]: Improve container restart observation in the memory limits tutorial using kubectl --watch
This is a Feature Request
What would you like to be added
In the [Assign Memory Resources to Containers and Pods](https://kubernetes.io/docs/tasks/configure-pod-container/assign-memory-resource/) tutorial, under the Exceed a Container's memory limit section, users are instructed to repeatedly execute the following command to observe the container being killed and restarted:
kubectl get pod memory-demo-2 --namespace=mem-example
I suggest using the --watch (-w) flag instead:
kubectl get pod memory-demo-2 --namespace=mem-example --watch
This would allow users to continuously observe changes to the Pod resource without manually executing the command multiple times.
Why is this needed
The current instructions require learners to repeatedly run the same command to observe the container's restart behavior.
Using --watch would provide a more interactive learning experience by allowing users to observe changes in the Pod's status and restart count as they happen.
It would also introduce learners to the kubectl --watch functionality through a practical example, helping them understand how to monitor Kubernetes resources.
Comments
This is a small documentation improvement that could make the hands-on tutorial easier to follow without changing its learning objectives.
If this clarification makes sense, I'd be happy to open a PR to address it. Please let me know if you have any suggestions or a preferred approach.
This issue is currently awaiting triage.
SIG Docs takes a lead on issue triage for this website, but any Kubernetes member can accept issues by applying the triage/accepted label.
The triage/accepted label can be added by org members by writing /triage accepted in a comment.
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.
/assign
Hey @CalebAckom, thanks for your interest I actually opened this issue for myself and have a PR for it just waiting on the maintainers to review. Could you please unassign yourself or find any other issue ? Thanks
Hey @08abhinav , that's fine.
/unassign
Thank you @CalebAckom, I really appreciate you 👍