Coder Social home page Coder Social logo

kubectl-plugins's Introduction

kubectl-plugins

Some plugins for kubectl.

kubectl debug

It is useful for debug container.

Usually when we debug the container, we will use kubectl exec to enter the container to execute some commands. But In our container, it's usually a very thin image, so we can't use some of the tools commonly used in virtual machines to debug.

Use kubectl debug plugin,We can easily start a debug container to debug the container running in kubernetes. The image of this debug container contains most of the common debugging tools, such as gdb, jmap, etc., so that it can debug most of the containers.

  • The agent is deployed in binary on each node of the kubernetes. Of course, we can use the daemonset way to deploy the management agent.
  • kubectl plugin debug -n <namespace> <pod-name> -c <container-name> [command]
  • After executing the above command, a client will be run, and then a message will be sent to the agent. After the agent receives it, it will start a debugging container, and then the agent will be responsible for forwarding the output to the plugin.

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.