Skip to content

coulof/kubectl-csm-diag

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kubectl-csm-diag

This repository hosts the kubectl plugin to capture all the information to debug Dell CSI/CSM.

It is inspired by Log3.sh created by @OA72280.

To obtain the script and make it working you can run:

curl -LO https://raw.githubusercontent.com/coulof/kubectl-csm-diag/main/kubectl-csm-diag && chmod +x kubectl-csm-diag
sudo mv kubectl-csm-diag /usr/local/bin

To run the script just execute:

kubectl-csm-diag

Or with all the options to specify which namespaces you want to capture, if you need the secrets to be captured too & verbose mode:

kubectl-csm-diag -n dell-csm-operator,powerflex -s -v

Archive content

The script create an archive (zip or tar) containing:

  • The list of pods : pods-list.log
  • Pods and container logs for the matching namespaces
  • storage.dell.com CRs
  • Helm values.yaml
  • StorageClass, Node & CSINodes details
  • Secrets containing the configuration to the storage backend ; only if the option -s is explicitly called

TODO

  • Add command options parsing
  • Replace selection by namespace with a selector. Need to find a selector to identify CSI Drivers...

About

kubectl plugin to capture Dell CSM logs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages