3.2 Browsing Resources

Kubed gives you an interactive list of resources for each type, that you access with the kubed-list-resources commands, such as kubed-list-pods which shows you the list of Kubernetes pods in buffer *kubed-pods*.

These commands are bound to l in Kubed’s type-specific prefix keymaps, most of which are accessible via the global kubed-prefix-map by default (see Definition of kubed-prefix-map). So if you’ve bound kubed-prefix-map to C-c k, you can pop up the pods list with C-c k p l, the deployments list with C-c k d l, the namespaces list with C-c k N l, etc.

Each resource type has its own major mode for list buffers with type-specific commands and operations, but they are all also derived from a shared parent mode. The *kubed-pods* buffer uses the kubed-pods-mode (‘Kubernetes Pods’) major mode, the list of Kubernetes deployments in buffer *kubed-deployments* uses kubed-deployments-mode, and so on.

The common parent major mode is kubed-list-mode:

Major Mode: kubed-list-mode

Major mode for listing generic Kubernetes resources.

This mode provides the following commands for all type-specific derived modes:

/

Filter the current list of resources (kubed-list-set-filter). See Filtering Resource Lists.

d

Mark the resource at point for deletion (kubed-list-mark-for-deletion). Resources marked for deletion have a ‘D’ in the beginning of their line.

u

Unmark from resource at point (kubed-list-unmark).

A

Toggle kubed-all-namespaces-mode. When enabled, resource lists for namespaced resource types show resources from all namespaces, not just the current namespace.

n

Move point to the next line (next-line).

p

Move point to the previous line (previous-line).

TAB

Move point to the next column. If point is already at the last column, move to the first column of the next line instead (kubed-list-next-column).

S-TAB

Move point to the previous column. If point is already at the first column, move to the last column of the previous line instead (kubed-list-previous-column).

S

Sort lines by the column at point (tabulated-list-sort).

{

Narrow the column at point (tabulated-list-narrow-current-column).

}

Widen the column at point (tabulated-list-widen-current-column).