Skip to content

About

kubectl plugin for gathering diagnostics from running in k8s dotnet applications

Resources

Code of conduct

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

32 Commits

Folders and files

Repository files navigation

kubectl shovel

Testing and publishing Go Report Card FOSSA Status GitHub Release

Plugin for kubectl that will help you to gather diagnostic info from running in Kubernetes dotnet applications. It can work with .NET Core 3.0+ applications and Kubernetes clusters with docker runtime.

At the moment the following diagnostic tools are supported:

  • dotnet-gcdump
  • dotnet-trace

Inspired by kubectl-flame.

Installation

Krew

You can install kubectl shovel via krew. At first install krew if you don't have it yet following the guide - Installing. Then you will be able to install shovel plugin:

kubectl krew install shovel

Precompiled binaries

You can find latest release on repository release page. Once you download compatible with your OS binary, move it to any directory specified in your $PATH.

Usage

Feel free to use it as a kubectl plugin or standalone executable (kubectl shovel/kubectl-shovel)

Get gcdump:

kubectl shovel gcdump --pod-name pod-name-74df554df7-qldq7 -o ./dump.gcdump

Or trace:

kubectl shovel trace --pod-name pod-name-74df554df7-qldq7 -o ./trace.nettrace

You can find more info and examples in cli documentation or by using -h/--help flag.

How it works

It runs the job with specified tool on the specified pod's node and mount its /tmp folder with dotnet-diagnostic socket. So it requires permissions to get pods and create jobs and allowance to mount /var/lib/docker path from a host in read-only mode.

About

kubectl plugin for gathering diagnostics from running in k8s dotnet applications

Resources

Code of conduct

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages