k8snitch is an interactive CLI tool designed to fetch information from your Kubernetes cluster on the fly.
-
Clone the repository:
git clone https://github.com/yourusername/k8snitch.git cd k8snitch
-
Install dependencies:
pip install -r requirements.txt
-
Run the script:
python3 k8snitch.py
Alternatively, create an alias for easier access.
- Select this action: Choose to fetch container image information.
- Select the namespace: Specify the namespace in the Kubernetes cluster.
- Output format: Displays information in a formatted table.
- Outputs:
- Pod Name
- CPU Cores
- Memory Bytes
- Select this action: Choose to fetch container image information.
- Select the namespace: Specify the namespace in the Kubernetes cluster.
- Output format: Displays information in a formatted table.
- Outputs:
- Workload type
- Workload name
- Images running in each deployment/statefulset
- Last update time of the resource
- Select this action: Choose to fetch resources requests information.
- Select the namespace: Specify the namespace in the Kubernetes cluster.
- Output format: Displays information in a formatted table.
- Outputs:
- Deployment/Statefulset name
- Resource Type
- CPU
- Memory
- Select this action: Choose to fetch resources requests information.
- Select the namespace: Specify the namespace in the Kubernetes cluster.
- Output format: Displays information in a formatted table.
- Outputs:
- Workload type: statefulset/deployment
- Name of the workload
- Namespace
- Replica caount for the workload
- Select this action: Choose to fetch resources requests information.
- Select the namespace: Specify the namespace in the Kubernetes cluster.
- Select the deployment: Specify the deployment in the selected namespace.
- Output format: Prints the logs to the terminal.
- Outputs:
- Logs print
- Select this action: Choose to fetch resources requests information.
- Select the namespace: Specify the namespace in the Kubernetes cluster.
- Select the statefulset: Specify the statefulset in the selected namespace.
- Output format: Prints the logs to the terminal.
- Outputs:
- Logs print
More functionalities to be added in future updates.
Contributions are welcome! Feel free to fork the repository and submit pull requests for new features, improvements, or bug fixes.
This project is licensed under the MIT License. See the LICENSE file for details.
For questions or support, contact the project maintainer at [email protected].
This README.md provides an overview of k8snitch, including setup instructions, current functionality (specifically for fetching container images from Kubernetes), information on contributing, licensing details, and contact information. Adjust the details (such as email and repository URL) based on your actual repository and preferences.