kubectl.js is an wrapper for kubectl to get better UX.
> npm i -g kubectl.js
> kubejs [op [args...]]
-
(none)
Will ask you to choose one. -
get namespaces | [namespace][resource-type]
Print resources. -
get-watch namespaces | [namespace][resource-type]
Print resources every 1s. -
exec [namespace][pod]
Execute commands in a pod (bash) -
log-history [namespace][pod]
Print history logs of a pod. -
log-future [namespace][pod]
future logs of a pod. -
mlog-future [namespace][pod-keyword]
Print future logs of some pods. -
help
Print help.
all, deployments, endpoints, events, jobs, namespaces, nodes, pods, replicasets, services, statefulsets, storageclasses.