kubectl-watch

Another watch tool with visualization view of delta change for kubernetes resources.

overview of using delta diff tool | overview of using difftastic diff tool :--------------------------------------------------:|:--------------------------------------------------: overview-delta.png | overview-difft.png

Installation

Download kubectl-watch from release assets.

Build and install from source using Cargo:

bash cargo install kubectl-watch --locked

docker image

  1. Docker should be preinstalled, more installation details please visit official website.

  2. copy the kubectl-watch script into your $PATH folder bash cp script/kubectl-watch /usr/local/bin/ chmod +x /usr/local/bin/kubectl-watch

Usage

watch deploy in all namespace bash kubectl-watch {resource-name} -A

watch deploy on some namespace bash kubectl-watch {resource-name} -n {namespace}

watch with delta view, just add --delta arg. bash kubectl-watch {resource-name} -n {namespace} --delta

watch with delta view by using difftastic tool, just add --diff-tool difft kubectl watch {resource-name} -n {namespace} --delta --diff-tool difft

run kubectl-watch -h to get help msg. ```bash kubectl-watch

USAGE: kubectl-watch [OPTIONS] [ARGS]

ARGS:

OPTIONS: -A, --all If present, list the requested object(s) across all namespaces -d, --delta Show delta changes view --diff-tool Diff tool for process delta changes [default: delta] [possible values: delta, difft] -h, --help Print help information -l, --selector Selector (label query) to filter on, supports '=', '==', and '!='.(e.g. -l key1=value1,key2=value2) -n, --namespace If present, the namespace scope for this CLI request --skip-tls Skip tls check ```

Thanks