Documentation
¶
Overview ¶
Package cluster orchestrates the full lifecycle of a homelab K8s cluster. It coordinates Lima VM provisioning, K3s installation, and cluster operations across multiple remote macOS hosts.
Index ¶
- func Apply(ctx context.Context, cfg *config.Config, dryRun bool) error
- func Backup(ctx context.Context, cfg *config.Config, outputDir string) error
- func Destroy(ctx context.Context, cfg *config.Config, force, dryRun bool) error
- func Init(ctx context.Context, cfg *config.Config, opts InitOptions) error
- func Join(ctx context.Context, cfg *config.Config, dryRun bool) error
- func Remove(ctx context.Context, cfg *config.Config, hostName string, dryRun bool) error
- func Restore(ctx context.Context, cfg *config.Config, snapshotPath string) error
- func Status(ctx context.Context, cfg *config.Config) error
- func Upgrade(ctx context.Context, cfg *config.Config, dryRun bool) error
- type InitOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Apply ¶
Apply iterates over all nodes in the cluster, gracefully rolling updates to VM configurations (CPUs, Memory) one at a time to ensure zero downtime.
Types ¶
type InitOptions ¶
InitOptions configures the Init operation.
Click to show internal directories.
Click to hide internal directories.