Skip to main content

kge - Kubernetes Events Viewer

Python Version License: MIT PyPI

A simple yet powerful CLI tool for viewing and monitoring Kubernetes events with a focus on readability and ease of use. kge provides an intuitive interface to quickly diagnose issues.

Table of Contents

Features

  • 🔍 View events for specific pods
  • 👻 Find missing pods because of missing serviceAccounts or volumes
  • 📊 View all events in a namespace
  • ⚠️ Filter to show only non-normal events
  • 🖱️ Interactive pod selection
  • 🎨 Color-coded output
  • ⌨️ Shell completion support (zsh)
  • 🔄 View events for any Kubernetes resource type (Pods, Deployments, CRDs, etc.)

Installation

A brew formula is a WIP. Until then, use pipx. Which can be installed with brew install pipx Pipx is like brew, only for python.

# Install using pipx (recommended)
pipx install kge-kubectl-get-events
# Or install using pip, but not as easy
pip install kge-kubectl-get-events

Usage

Interactive Mode

Run without arguments for interactive pod selection:

kge

Basic Usage

View events for a specific pod:

kge <pod-name>

View events in all namespaces:

kge -A

View events in a specific namespace:

kge -n <namespace>

Viewing Events for Any Resource Type

View events for a specific resource type:

kge -k <kind> <resource-name>

Check a different namespace than your current context:

kge -n kubecost

TODO:View only non-normal events:

kge -e

Combine flags to view all non-normal events in the current namespace:

kge -ea

Shell Completion

Enable zsh completion:

source <(kge --completion=zsh)

Completion features:

  • Tab completion for namespaces after -n
  • Tab completion for pods after -n <namespace>
  • Tab completion for kinds after -k
  • Tab completion for resources of a specific kind after -k <kind>

Examples

View non-normal events for all pods in a namespace:

kge -ea

View events for a specific pod in a specific namespace:

kge -n my-namespace my-pod

View events for a Deployment:

kge -k Deployment my-deployment

Known Issues

  • Not all arguments work together. For example, kge -e -k Deployment will not work. For complex queries, use kge -a to see all events and filter with grep or another tool.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request. For major changes, please open an issue first to discuss what you would like to change.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

License

This project is licensed under the MIT License - see the LICENSE file for details.

Metadata

Release files for kge-kubectl-get-events 0.11.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for kge-kubectl-get-events 0.11.4
File Size Uploaded Provenance Actions
kge_kubectl_get_events-0.11.4.tar.gz 18.2 kB With provenance Details for kge_kubectl_get_events-0.11.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for kge-kubectl-get-events 0.11.4
File Interpreter ABI Platform Actions
kge_kubectl_get_events-0.11.4-py3-none-any.whl Python 3 none any Details for kge_kubectl_get_events-0.11.4-py3-none-any.whl

Total release size: 33.8 kB

Release files / kge_kubectl_get_events-0.11.4.tar.gz

Download URL kge_kubectl_get_events-0.11.4.tar.gz
Size 18.2 kB
Tags Source
SHA-256 checksum
How to use checksums
8691c25b99c2259ea112e439fbcc33ce9f40d76204cd40a8d60a4dd150c7ed5b
BLAKE2b-256 checksum
How to use checksums
d2e6c668ff93bf6a1121722d8e061582fa17ef8f4345f40ee7c9d016e6272f29
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 29, 2025.

Transparency log

Release files / kge_kubectl_get_events-0.11.4-py3-none-any.whl

Download URL kge_kubectl_get_events-0.11.4-py3-none-any.whl
Size 15.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
03001e9e996c54439168900c998c8e93c7ccdd2aff5aa2bb7c933c58fb8e4be6
BLAKE2b-256 checksum
How to use checksums
ab72a98a9139a06a5c4ec80130e46b021eba442f0bba023d92038ad9d717b5fa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 29, 2025.

Transparency log

Security for kge-kubectl-get-events 0.11.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for kge_kubectl_get_events-0.11.4.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 29, 2025.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.11.4 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page