Command line utility to get basic metrics and pod breakdown of a kubernetes cluster. Similar to kubectl top {resource}
- Download latest release Releases
- Run command in directory of the binary
k8s-info --watch
- Install Go https://golang.org/dl/
- Clone repository
- If using vscode press F5 to run alternatively run
go run main.go metrics.go
N.B If vendor folder gets deleted running godep restore ./...
will get all required packages
- metric = Specify what type of metrics {nodes|pods} (Required) (nodes by default) (
--metric pods
) - kubeconfig = Specify absolute path to kubeconfig file (Optional)
- namespace = Specify namespace to get resource from (Optional) (
--namespace test
OR-namespace=test
) - watch = Watch cluster at 15 sec interval (Optional) (
--watch
OR-watch
) - duration = Set custom duration for watch in seconds (Optional) (
--duration 30
) - all = Get resources for all namespaces overrides
--namespace
(Optional) (--all
)