Skip to main content

CLI to inspect Kubernetes pods and common failure states in a namespace.

Project description

k8s-debug-tool

CLI helper for DevOps: list pods in a Kubernetes namespace and highlight common problem states (failed phase, CrashLoopBackOff, terminated with messages).

Requires a valid kubeconfig (or in-cluster credentials when run inside a pod).

Install

pip install k8s-debug-tool

Usage

k8s-debug --namespace default
k8s-debug -n kube-system

Build and publish (maintainers)

From this directory (k8s-debug-tool/):

python -m pip install --upgrade build twine
python -m build
python -m twine upload dist/*

Use an API token as the password when twine prompts you.

Before the first upload, create the project on PyPI (or use twine with a token that has upload scope). If the name k8s-debug-tool is taken, change name in pyproject.toml and pick a unique name on PyPI.

License

MIT — see LICENSE.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

k8s_debug_tool-0.2.0.tar.gz (6.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

k8s_debug_tool-0.2.0-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

Details for the file k8s_debug_tool-0.2.0.tar.gz.

File metadata

  • Download URL: k8s_debug_tool-0.2.0.tar.gz
  • Upload date:
  • Size: 6.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for k8s_debug_tool-0.2.0.tar.gz
Algorithm Hash digest
SHA256 dfda6b474c4286f2f8037148a6755331d394ad3b75106416ff80afd384ad1d93
MD5 02cd00633abec1e89c56e4cda60a2480
BLAKE2b-256 b6182116cb102658278f585ae0fa7b0f296470770f6c3677f74cabaa46637b71

See more details on using hashes here.

File details

Details for the file k8s_debug_tool-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: k8s_debug_tool-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 6.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for k8s_debug_tool-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4ed3c21d6a62681bd7ca3a26b3a578d9867721e445ba4dfa05960287316804c0
MD5 95391e443eda27950348ea260ba70ccb
BLAKE2b-256 a5b21402dbe2d3c7271d5c6e741c1aaa9c843d661f4cda51d1ba7803bfe3a62b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page