Core agent system for Raspberry Pi k0s cluster management: Agents: - k8s-orchestrator: Central task delegation and decision making - k8s-diagnostician: Cluster health, logs, troubleshooting - argocd-operator: GitOps deployments and rollbacks - prometheus-analyst: Metrics queries and alert analysis - git-operator: Manifest management and PR workflows Workflows: - cluster-health-check.yaml: Scheduled health assessment - deploy-app.md: Application deployment guide - pod-crashloop.yaml: Automated incident response Skills: - /cluster-status: Quick health overview - /deploy: Deploy or update applications - /diagnose: Investigate cluster issues Configuration: - Agent definitions with model assignments (Opus/Sonnet) - Autonomy rules (safe/confirm/forbidden actions) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
65 lines
1.5 KiB
Markdown
65 lines
1.5 KiB
Markdown
# Cluster Status
|
|
|
|
Get a quick health overview of the Raspberry Pi Kubernetes cluster.
|
|
|
|
## Usage
|
|
|
|
```
|
|
/cluster-status
|
|
```
|
|
|
|
## What it does
|
|
|
|
Invokes the k8s-orchestrator to provide a comprehensive cluster health overview by delegating to specialized agents.
|
|
|
|
## Steps
|
|
|
|
1. **Node Health** (k8s-diagnostician, haiku)
|
|
- Get all node statuses
|
|
- Check for any conditions (MemoryPressure, DiskPressure)
|
|
- Report resource usage per node
|
|
|
|
2. **Active Alerts** (prometheus-analyst, haiku)
|
|
- Query Alertmanager for firing alerts
|
|
- List alert names and severity
|
|
|
|
3. **ArgoCD Status** (argocd-operator, haiku)
|
|
- List all applications
|
|
- Report sync status (Synced/OutOfSync)
|
|
- Report health status (Healthy/Degraded)
|
|
|
|
4. **Summary** (k8s-orchestrator, sonnet)
|
|
- Aggregate findings
|
|
- Produce overall health rating
|
|
- Recommend actions if issues found
|
|
|
|
## Output Format
|
|
|
|
```
|
|
Cluster Status: [Healthy/Degraded/Critical]
|
|
|
|
Nodes:
|
|
| Node | Status | CPU | Memory | Conditions |
|
|
|--------|--------|------|--------|------------|
|
|
| pi5-1 | Ready | 45% | 68% | OK |
|
|
| pi5-2 | Ready | 32% | 52% | OK |
|
|
| pi3 | Ready | 78% | 89% | MemPressure|
|
|
|
|
Active Alerts: [count]
|
|
- [FIRING] AlertName - description
|
|
|
|
ArgoCD Apps:
|
|
| App | Sync | Health |
|
|
|-----------|----------|-----------|
|
|
| homepage | Synced | Healthy |
|
|
| api | OutOfSync| Degraded |
|
|
|
|
Recommendations:
|
|
- [action if needed]
|
|
```
|
|
|
|
## Options
|
|
|
|
- `--full` - Run the complete cluster-health-check workflow
|
|
- `--quick` - Just node and pod status (faster)
|