Revise wild-setup-cluster to use a single wild-node-setup to replace node-patch-generate and node-up.
This commit is contained in:
@@ -67,20 +67,21 @@ Wild Cloud provides 34+ command-line tools (all prefixed with `wild-`) for manag
|
||||
- Generates cluster secrets using `talosctl gen config`
|
||||
- **Usage**: `wild-cluster-config-generate`
|
||||
|
||||
**`wild-node-detect`** - Hardware detection for nodes
|
||||
**`wild-node-setup`** - Complete node lifecycle management
|
||||
- Handles detect → patch → deploy for individual nodes
|
||||
- Automatically detects maintenance mode
|
||||
- Options: `--detect`, `--no-deploy`
|
||||
- **Usage**: `wild-node-setup <node-name> [options]`
|
||||
- **Examples**:
|
||||
- `wild-node-setup control-1` (complete setup)
|
||||
- `wild-node-setup worker-1 --detect` (force hardware re-detection)
|
||||
- `wild-node-setup control-2 --no-deploy` (configuration only)
|
||||
|
||||
**`wild-node-detect`** - Hardware detection utility
|
||||
- Discovers network interfaces and disks from maintenance mode
|
||||
- Returns JSON with hardware specifications
|
||||
- **Usage**: `wild-node-detect <node-ip>`
|
||||
|
||||
**`wild-cluster-node-patch-generate`** - Generate node-specific configs
|
||||
- Creates patches based on hardware detection
|
||||
- Uses templates with node-specific variables
|
||||
- **Usage**: `wild-cluster-node-patch-generate <node-name>`
|
||||
|
||||
**`wild-cluster-node-up`** - Apply Talos configuration to nodes
|
||||
- Options: `--insecure`, `--force`, `--dry-run`
|
||||
- Generates final config from base + patch
|
||||
- **Usage**: `wild-cluster-node-up <node-name> [options]`
|
||||
- **Note**: Primarily used internally by `wild-node-setup`
|
||||
|
||||
**`wild-cluster-node-ip`** - Get node IP addresses
|
||||
- Sources: config.yaml, kubectl, or talosctl
|
||||
@@ -257,8 +258,9 @@ wild-health # Check system health
|
||||
|
||||
### Node Management Flow
|
||||
1. `wild-cluster-config-generate` → base configurations
|
||||
2. `wild-node-detect` → discover hardware
|
||||
3. `wild-cluster-node-patch-generate` → node-specific configs
|
||||
4. `wild-cluster-node-up` → apply configurations
|
||||
2. `wild-node-setup <node-name>` → atomic node operations (detect → patch → deploy)
|
||||
- Internally uses `wild-node-detect` for hardware discovery
|
||||
- Generates node-specific patches and final configurations
|
||||
- Deploys configuration to target node
|
||||
|
||||
All scripts are designed to work together as a cohesive Infrastructure as Code system for personal Kubernetes deployments.
|
||||
Reference in New Issue
Block a user