kubewatch

command module
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 1, 2017 License: Apache-2.0 Imports: 13 Imported by: 0

README

kubewatch

Version Widget License Widget GoReportCard Widget Travis Widget DockerHub Widget

Kubernetes API event watcher.

Install
go get -u github.com/softonic/kubewatch
Shell completion
eval "$(kubewatch --completion-script-${0#-})"
Help
kubewatch --help
usage: kubewatch [<flags>]

Watches Kubernetes resources via its API.

Flags:
  -h, --help                 Show context-sensitive help (also try --help-long and --help-man).
      --kubeconfig           Absolute path to the kubeconfig file.
      --resource="services"  Set the resource type to be watched.
      --namespace=""         Set the namespace to be watched.
      --version              Show application version.
Out-of-cluster examples:

Watch for pods events in all namespaces:

kubewatch --resource pods

Same thing with docker:

docker run -it --rm \
-v ~/.kube/config:/root/.kube/config \
softonic/kubewatch --resource pods

Watch for services events in namespace foo:

kubewatch --namespace foo --resource services

Same thing with docker:

docker run -it --rm \
-v ~/.kube/config:/root/.kube/config \
softonic/kubewatch --namespace foo --resource services
In-cluster examples:

Run kubewatch in the monitoring namespace and watch for pods in all namespaces:

kubectl --namespace monitoring run kubewatch --image softonic/kubewatch -- --resource pods

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL