kubectl get pods -o yaml displays three main fields: metadata, spec and status. Add a view that split this yaml, puts spec on one side of the terminal and 'status' on the other side.
Add a way to switch between this "enchanced"? view and standard yaml output e.g. using Tab.
Find a good way to parse and manipulate yaml in java.
Maybe use the -w flag to watch for changes:
Note: The kubectl get command is usually used for retrieving one or more resources of the same resource type. It features a rich set of flags that allows you to customize the output format using the -o or --output flag, for example. You can specify the -w or --watch flag to start watching updates to a particular object. - kubectl docs
kubectl get pods -o yaml
displays three main fields:metadata
,spec
andstatus
. Add a view that split this yaml, putsspec
on one side of the terminal and 'status' on the other side.Tab
.Maybe use the
-w
flag to watch for changes: