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.
- 🔍 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.)
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-eventsRun without arguments for interactive pod selection:
kgeView events for a specific pod:
kge <pod-name>View events in all namespaces:
kge -AView events in a specific namespace:
kge -n <namespace>View events for a specific resource type:
kge -k <kind> <resource-name>Check a different namespace than your current context:
kge -n kubecostTODO:View only non-normal events:
kge -eCombine flags to view all non-normal events in the current namespace:
kge -eaEnable 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>
View non-normal events for all pods in a namespace:
kge -eaView events for a specific pod in a specific namespace:
kge -n my-namespace my-podView events for a Deployment:
kge -k Deployment my-deployment- 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.
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
This project is licensed under the MIT License - see the LICENSE file for details.