Git Product home page Git Product logo

kubeplugin's Introduction

Description Kubeplugin

This plugin show the CPU and RAM usage of each resource in the cluster.

NOTE: The plugin is based on the kubectl top command.

Prerequisites:

  • kubectl command line interface doc
  • your cluster has metrics-server doc

Installation kubeplugin:

General documentaion how to install, use plugins doc

  • Clone repo and copy kubeplugin to your $PATH like: /usr/local/bin/kubectl-kubeplugin as name of kubectl-kubeplugin
  • Add executable permission to kubeplugin as sudo chmod +x /usr/local/bin/kubectl-kubeplugin
  • Check plugin with kubectl plugin list you should see kubectl-kubeplugin in the list

Usage kubeplugin:

For getting the CPU and RAM usage of each resource in the cluster you can use kubectl kubeplugin command with arguments resource-type and namespace

Example:

➜ kubectl kubeplugin pod kube-system
R-TYPE  NS           NAME                                    CPU  MEM
pod     kube-system  coredns-77ccd57875-24xbq                5m   23Mi
pod     kube-system  local-path-provisioner-957fdf8bc-m276z  1m   13Mi
pod     kube-system  metrics-server-648b5df564-578mp         11m  30Mi
pod     kube-system  svclb-traefik-7afa9488-c9nmg            0m   0Mi
pod     kube-system  traefik-64f55bb67d-xnpwb                5m   40Mi

...

➜ kubectl kubeplugin node kube-system
R-TYPE  NS           NAME               CPU   MEM
node    kube-system  k3d-argo-server-0  222m  2%

kubeplugin's People

Contributors

aldans avatar

Watchers

 avatar

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.