GithubHelp home page GithubHelp logo

Expand to see containers in pods about k9s HOT 4 CLOSED

derailed avatar derailed commented on July 17, 2024
Expand to see containers in pods

from k9s.

Comments (4)

derailed avatar derailed commented on July 17, 2024 1

@mrballcb @lfundaro Fixed 0.5.0!

from k9s.

derailed avatar derailed commented on July 17, 2024

Thanks for the report @lfundaro! I think it could be useful but what else would you show? Isn't it a functionality we currently have by just viewing or describing the pod?

from k9s.

mrballcb avatar mrballcb commented on July 17, 2024

I too feel this would be useful if can get the same type of behavior as kubectl top pods --containers. For example:

(⎈ |ren:default) $ kubectl get pods -n dev -l app=kibana
NAME                     READY     STATUS    RESTARTS   AGE
kibana-6897c4859-2rdmz   2/2       Running   0          6d
kibana-6897c4859-4fqdw   2/2       Running   0          6d
kibana-6897c4859-ckkvs   2/2       Running   0          6d
(⎈ |ren:default) $ kubectl top pods -n dev -l app=kibana --containers
POD                      NAME      CPU(cores)   MEMORY(bytes)
kibana-6897c4859-2rdmz   nginx     1m           3Mi
kibana-6897c4859-2rdmz   kibana    5m           219Mi
kibana-6897c4859-4fqdw   nginx     1m           3Mi
kibana-6897c4859-4fqdw   kibana    6m           210Mi
kibana-6897c4859-ckkvs   kibana    5m           297Mi
kibana-6897c4859-ckkvs   nginx     1m           3Mi

It becomes very clear in multi container pods which container is actually consuming memory or cpu. However, I'll note that there doesn't appear to be an easy way to get this info directly from kubectl get pods either (at least in kubectl 1.10.x), so it's probably a pretty large ask.

from k9s.

lfundaro avatar lfundaro commented on July 17, 2024

nice ! thanks a lot ! 🎊

from k9s.

Related Issues (20)

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.