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.1.0.tar.gz (3.6 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.1.0-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: k8s_debug_tool-0.1.0.tar.gz
  • Upload date:
  • Size: 3.6 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.1.0.tar.gz
Algorithm Hash digest
SHA256 f26bd7ab568877f47747bfe1f70385f5336408c3527f4b2d3f957b5e6aad3109
MD5 1fd1f5b7746c3ff86e7b23da2dd5e9cf
BLAKE2b-256 66fd0bce4859e6c8e6f63df1f530cb1112498b3b238e4b896b43183862166647

See more details on using hashes here.

File details

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

File metadata

  • Download URL: k8s_debug_tool-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.2 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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2c15b4d5f5716268761c980395332f1f0d8c6b8a1aaace80abd7989c65453e69
MD5 f07fe09d6757cfaed2fe4062877e2ea2
BLAKE2b-256 52900537f6f8cd81a6d77e37e9ce3ae8a075d47ca2ff98136ac5560047463e29

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