An open API service indexing awesome lists of open source software.

https://github.com/yairfalse/tapio

Making Kubernetes and eBPF accessible to everyone
https://github.com/yairfalse/tapio

debugging devops ebpf kubernetes observability

Last synced: 9 months ago
JSON representation

Making Kubernetes and eBPF accessible to everyone

Awesome Lists containing this project

README

          

# ๐ŸŒฒ Tapio - The Forest Guardian for Kubernetes

Named after the Finnish god of forests, Tapio protects your digital forest by making complex Kubernetes cluster debugging simple and human-readable.

## โœจ Features

- **Beautiful Human Output**: Emojis, colors, and clear explanations
- **Predictive Analysis**: AI-powered failure prediction with confidence scores
- **Quick Fixes**: Actionable commands for immediate problem resolution
- **Multiple Output Formats**: Human, JSON, and YAML output
- **Smart Filtering**: Check specific apps, pods, or entire clusters
- **Zero Configuration**: Auto-detects your Kubernetes setup

## ๐Ÿš€ Quick Start

### Installation

```bash
# Build from source
make build

# Install globally
make install
```

### Basic Usage

```bash
# Check current namespace
tapio check

# Check specific app
tapio check my-app

# Check specific pod
tapio check pod/my-app-7d4b9c8f-h2x9m

# Check entire cluster
tapio check --all

# Get JSON output
tapio check --output json
```

## ๐Ÿ“Š Sample Output

```bash
$ tapio check
HEALTHY: 3 pods healthy
WARNING: 1 pod has warnings

WARNING: pod/api-service-xyz: High restart count
Container api has restarted 5 times
PREDICTION: Will fail in 15m (80% confidence)
REASON: Frequent restarts indicate unstable container

Quick fixes available:
[FIX] kubectl logs api-service-xyz --previous
Check logs for error patterns
[URGENT] kubectl describe pod api-service-xyz
Get detailed pod information
```

## ๐Ÿ—๏ธ Architecture

```
tapio/
โ”œโ”€โ”€ cmd/tapio/ # Main CLI entry point
โ”œโ”€โ”€ internal/
โ”‚ โ”œโ”€โ”€ cli/ # Cobra CLI commands
โ”‚ โ””โ”€โ”€ output/ # Output formatters
โ”œโ”€โ”€ pkg/
โ”‚ โ”œโ”€โ”€ simple/ # Core health checker
โ”‚ โ””โ”€โ”€ types/ # Shared type definitions
โ””โ”€โ”€ test/ # Unit and integration tests
```

## ๐Ÿงช Development

```bash
# Set up development environment
make dev-setup

# Build and test
make dev

# Run tests
make test

# Run linter
make lint

# Build for all platforms
make build-all
```

## ๐ŸŽฏ Roadmap

- [ ] eBPF integration for kernel-level insights
- [ ] Custom health check rules
- [ ] Slack/Discord notifications
- [ ] Prometheus metrics export
- [ ] Auto-healing capabilities
- [ ] Multi-cluster support

## ๐Ÿค Contributing

Contributions welcome! This project follows the [Conventional Commits](https://www.conventionalcommits.org/) specification.

## ๐Ÿ“œ License

MIT License - see [LICENSE](LICENSE) for details.

---

**Keep your Kubernetes forest healthy with Tapio!**