Quick Start Guide¶
Get up and running with K8s Inventory CLI in minutes.
Installation¶
Via pipx (Recommended)¶
Via pip¶
Development Installation¶
git clone https://github.com/brun-s/k8s-datamodel.git
cd k8s-datamodel
uv sync
uv run k8s-datamodel --help
Prerequisites¶
- Kubernetes cluster access
- Valid kubeconfig file
- Python 3.10 or higher
First Steps¶
1. Test Cluster Connection¶
2. Get Cluster Information¶
3. View Cluster Summary¶
Common Commands¶
List All CRDs¶
Find Operators¶
Export Complete Inventory¶
Output Formats¶
K8s Inventory CLI supports multiple output formats:
- Table (default): Human-readable grid format
- Rich: Enhanced terminal output with colors
- JSON: Machine-readable format
- YAML: Structured format for both humans and machines
Example with different formats:
k8s-datamodel crd list --output table
k8s-datamodel crd list --output json
k8s-datamodel crd list --output yaml
k8s-datamodel crd list --output rich
Next Steps¶
- Explore CRD Commands for detailed CRD analysis
- Learn about Operator Detection capabilities
- Check Cluster Operations for advanced features
- Review Output Formats for integration options