commit 120c2ec809a3b08aa5d4a577dbda357869d7c088 Author: kavren Date: Sun Dec 7 22:07:01 2025 -0500 Initial commit: KavCorp infrastructure documentation - CLAUDE.md: Project configuration for Claude Code - docs/: Infrastructure documentation - INFRASTRUCTURE.md: Service map, storage, network - CONFIGURATIONS.md: Service configs and credentials - CHANGELOG.md: Change history - DECISIONS.md: Architecture decisions - TASKS.md: Task tracking - scripts/: Automation scripts 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 diff --git a/CLAUDE.md b/CLAUDE.md new file mode 100644 index 0000000..72c7c36 --- /dev/null +++ b/CLAUDE.md @@ -0,0 +1,239 @@ +# CLAUDE.md + +This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository. + +## Repository Purpose + +Infrastructure documentation and management repository for the **KavCorp** Proxmox cluster - a 5-node homelab cluster running self-hosted services. This repository supports migration from Docker containers to Proxmox LXCs where appropriate. + +## Cluster Architecture + +**Cluster Name**: KavCorp +**Nodes**: 5 (pm1, pm2, pm3, pm4, elantris) +**Network**: 10.4.2.0/24 +**Primary Management Node**: pm2 (10.4.2.6) + +### Node IP Mapping +- pm1: 10.4.2.2 +- pm2: 10.4.2.6 (primary for new LXC deployment) +- pm3: 10.4.2.3 +- pm4: 10.4.2.5 +- elantris: 10.4.2.14 (largest node, 128GB RAM, ZFS storage) + +## Common Commands + +### Cluster Management +```bash +# Access cluster (use pm2 as primary management node) +ssh pm2 + +# View cluster status +pvecm status +pvecm nodes + +# List all VMs/LXCs across cluster +pvesh get /cluster/resources --type vm --output-format json + +# List all nodes +pvesh get /cluster/resources --type node --output-format json + +# List storage +pvesh get /cluster/resources --type storage --output-format json +``` + +### LXC Management +```bash +# List LXCs on a specific node +pct list + +# Get LXC configuration +pvesh get /nodes//lxc//config +pct config + +# Start/stop/restart LXC +pct start +pct stop +pct restart + +# Execute command in LXC +pct exec -- + +# Enter LXC console +pct enter + +# Create LXC from template +pct create