Skip to main content

Kubernetes utility for viewing pod and failed replicaset events

Project description

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
  • 📊 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, etc.)

Installation

# Install using pipx (recommended)
pipx install kge
# Or install using pip
pip install kge

Usage

Basic Usage

View events for a specific pod:

kge <pod-name>

View all events in the current namespace:

kge -a

View only non-normal events:

kge -e

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

kge -ea

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>

Examples:

# View events for a Deployment
kge -k Deployment my-deployment

# View events for a Lease in kube-system namespace
kge -n kube-system -k Lease kube-controller-manager

# View events for a Service
kge -k Service my-service

Interactive Mode

Run without arguments for interactive pod selection:

kge

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.

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

kge_kubectl_get_events-0.6.0.tar.gz (7.2 kB view details)

Uploaded Source

Built Distribution

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

kge_kubectl_get_events-0.6.0-py3-none-any.whl (8.9 kB view details)

Uploaded Python 3

File details

Details for the file kge_kubectl_get_events-0.6.0.tar.gz.

File metadata

  • Download URL: kge_kubectl_get_events-0.6.0.tar.gz
  • Upload date:
  • Size: 7.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.2 CPython/3.13.3 Linux/5.15.153.1-microsoft-standard-WSL2

File hashes

Hashes for kge_kubectl_get_events-0.6.0.tar.gz
Algorithm Hash digest
SHA256 a621a2a1dce067eedecac2541335b9ff068376b8505c8c3a4bd8afb088e95cba
MD5 3f7114c3293fccda4f7a28ee316dea7d
BLAKE2b-256 839dac3e98ede2018f33247f44b7c97848d93c2a9573ee3b444dd06c12aa20b4

See more details on using hashes here.

File details

Details for the file kge_kubectl_get_events-0.6.0-py3-none-any.whl.

File metadata

  • Download URL: kge_kubectl_get_events-0.6.0-py3-none-any.whl
  • Upload date:
  • Size: 8.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.2 CPython/3.13.3 Linux/5.15.153.1-microsoft-standard-WSL2

File hashes

Hashes for kge_kubectl_get_events-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cb730dd9f91cfdacd10a127f9b8c1c30f5b4b998ba05d02de87334b466b6d102
MD5 ecc5b0b80b9a5c1b4a4ba0b469388b4d
BLAKE2b-256 da277b2865407322f59e6e8ab6e2cf9628d7a0c5ffbecd5162d3ae92f5880c17

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