Kubernetes utility for viewing pod and failed replicaset events
Project description
kge - Kubernetes Events Viewer
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
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>
Interactive Mode
Run without arguments for interactive pod selection:
kge
Check a different namespace than your current context:
kge -n kubecost
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 Deploymentwill not work. For complex queries, usekge -ato see all events and filter withgrepor 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.
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
License
This project is licensed under the MIT License - see the LICENSE file for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file kge_kubectl_get_events-0.9.10.tar.gz.
File metadata
- Download URL: kge_kubectl_get_events-0.9.10.tar.gz
- Upload date:
- Size: 16.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fdabd8149707a1d63c273b0c8b610331d785c8546a08e9ec481e85a0c961ab69
|
|
| MD5 |
3cf20e601b31793ac05b3d8e58c3ad1e
|
|
| BLAKE2b-256 |
3d6c81dff63577dc516e3f220fc496f8d294f5ec189868e825de6860f9ebe8e5
|
Provenance
The following attestation bundles were made for kge_kubectl_get_events-0.9.10.tar.gz:
Publisher:
python-publish.yaml on jessegoodier/kge
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
kge_kubectl_get_events-0.9.10.tar.gz -
Subject digest:
fdabd8149707a1d63c273b0c8b610331d785c8546a08e9ec481e85a0c961ab69 - Sigstore transparency entry: 204790563
- Sigstore integration time:
-
Permalink:
jessegoodier/kge@ce5d2a51304036b5c511aef38fe1c5824b2a5a01 -
Branch / Tag:
refs/tags/v0.9.10 - Owner: https://github.com/jessegoodier
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yaml@ce5d2a51304036b5c511aef38fe1c5824b2a5a01 -
Trigger Event:
push
-
Statement type:
File details
Details for the file kge_kubectl_get_events-0.9.10-py3-none-any.whl.
File metadata
- Download URL: kge_kubectl_get_events-0.9.10-py3-none-any.whl
- Upload date:
- Size: 12.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d15f37d67e60200b23405322852adf4e969e4e4029e4a6e4a802055be3517bce
|
|
| MD5 |
2f672174108eb56aa59c079809104bcb
|
|
| BLAKE2b-256 |
fffe9b66685257bafb798ab824c15978139a93e5e7505f1f5622c7b0bf01ad7d
|
Provenance
The following attestation bundles were made for kge_kubectl_get_events-0.9.10-py3-none-any.whl:
Publisher:
python-publish.yaml on jessegoodier/kge
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
kge_kubectl_get_events-0.9.10-py3-none-any.whl -
Subject digest:
d15f37d67e60200b23405322852adf4e969e4e4029e4a6e4a802055be3517bce - Sigstore transparency entry: 204790572
- Sigstore integration time:
-
Permalink:
jessegoodier/kge@ce5d2a51304036b5c511aef38fe1c5824b2a5a01 -
Branch / Tag:
refs/tags/v0.9.10 - Owner: https://github.com/jessegoodier
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yaml@ce5d2a51304036b5c511aef38fe1c5824b2a5a01 -
Trigger Event:
push
-
Statement type: