Skip to content

This tool allows you to create an ephemeral container with just one command and provides configuration for securityContext.

Notifications You must be signed in to change notification settings

subscan-explorer/kubectl-d

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kubectl-d is a tool that simplifies the use of kubectl debug. With just one command, you can enter the container without having to look up information such as the name of the Pod, the name of the container, and the namespace. In addition, it provides configuration for securityContext.

Installation

  • Use the following command to install:
go install github.com/subscan-explorer/kubectl-d@latest
  • Download the binary file from the release page and add it to the PATH environment variable.

Usage

  • Run kubectl-d in the terminal to enter interactive command line mode. Follow the prompts to operate. asciicast
  • Use the following command directly to create a temporary container and enter it:
kubectl-d -n <namespace> <pod-name> -c <container-name> -capabilities <capabilities> -capabilities <capabilities> -image <debug-image>

asciicast

About

This tool allows you to create an ephemeral container with just one command and provides configuration for securityContext.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages