-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
9 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,21 @@ | ||
`kubectl-debug` 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`. | ||
`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-debug@latest | ||
go install github.com/subscan-explorer/kubectl-d@latest | ||
``` | ||
|
||
- Download the binary file from the [release](https://github.com/subscan-explorer/kubectl-debug/releases) page and add it to the `PATH` environment variable. | ||
- Download the binary file from the [release](https://github.com/subscan-explorer/kubectl-d/releases) page and add it to the `PATH` environment variable. | ||
|
||
## Usage | ||
|
||
- Run `kubectl-debug` in the terminal to enter interactive command line mode. Follow the prompts to operate. | ||
- Run `kubectl-d` in the terminal to enter interactive command line mode. Follow the prompts to operate. | ||
[![asciicast](https://asciinema.org/a/607671.svg)](https://asciinema.org/a/607671) | ||
- Use the following command directly to create a temporary container and enter it: | ||
``` | ||
kubectl-debug -n <namespace> <pod-name> -c <container-name> -capabilities <capabilities> -capabilities <capabilities> -image <debug-image> | ||
kubectl-d -n <namespace> <pod-name> -c <container-name> -capabilities <capabilities> -capabilities <capabilities> -image <debug-image> | ||
``` | ||
[![asciicast](https://asciinema.org/a/607672.svg)](https://asciinema.org/a/607672) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
module kubectl-debug | ||
module kubectl-d | ||
|
||
go 1.20 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters