marc-harry / k8s-info

Command line utility to get Kubernetes cluster information

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

k8s-info

Command line utility to get basic metrics and pod breakdown of a kubernetes cluster. Similar to kubectl top {resource}

Install and run

Using release

  1. Download latest release Releases
  2. Run command in directory of the binary k8s-info --watch

Using source code

  1. Install Go https://golang.org/dl/
  2. Clone repository
  3. 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

Parameters

  • 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)

About

Command line utility to get Kubernetes cluster information


Languages

Language:Go 100.0%