Code Monkey home page Code Monkey logo

kube-top's Introduction

kube-top

Build Status

Aggregates and provides visual representation of the following kubectl commands:

  • kubectl top pods
  • kubectl top nodes
  • kubectl get pods
  • kubectl get events

Usage

  • -namespace - Override the default namespace. For all namespaces use "".

Run

docker run -it \
    -v${HOME}/.kube:/.kube \
    -v${HOME}/.config/gcloud:/.config/gcloud \
    -v/etc/ssl/certs:/etc/ssl/certs \
    dpetzold/kube-top

Build

go get github.com/dpetzold/kube-top/cmd/kube-top

kube-top's People

Contributors

dpetzold avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

kube-top's Issues

panic: runtime error: slice bounds out of range

Compiles ok but get a panic with the stack details while executing.

goroutine 1 [running]:
github.com/dpetzold/kube-top/pkg/ui.updateContainers(0xc4200a2000)
/root/go/src/github.com/dpetzold/kube-top/pkg/ui/containers.go:88 +0x820
github.com/dpetzold/kube-top/pkg/ui.UpdatePanels()
/root/go/src/github.com/dpetzold/kube-top/pkg/ui/ui.go:78 +0x41
github.com/dpetzold/kube-top/pkg/ui.showWindow(0x123e0c0)
/root/go/src/github.com/dpetzold/kube-top/pkg/ui/ui.go:105 +0x30
github.com/dpetzold/kube-top/pkg/ui.KubeTop(0xc4204d67c0, 0x11c9ff0, 0x7)
/root/go/src/github.com/dpetzold/kube-top/pkg/ui/ui.go:186 +0x192
main.main()
/root/go/src/github.com/dpetzold/kube-top/cmd/kube-top/main.go:59 +0x44d

panic after could not find the requested resource

running latest version
tried "kube-top -namespace "" -v 5 -log_dir ./logs" and got no logs.

panic: the server could not find the requested resource (get services http:heapster:)

goroutine 22 [running]:
github.com/dpetzold/kube-top/pkg/ui.UpdateResources()
        /home/sig/go/dev/src/github.com/dpetzold/kube-top/pkg/ui/ui.go:16 +0xa0e
github.com/dpetzold/kube-top/pkg/ui.KubeTop.func2.1()
        /home/sig/go/dev/src/github.com/dpetzold/kube-top/pkg/ui/ui.go:195 +0x20
created by github.com/dpetzold/kube-top/pkg/ui.KubeTop.func2
        /home/sig/go/dev/src/github.com/dpetzold/kube-top/pkg/ui/ui.go:194 +0x35

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.