Rename CLI from wild to wildcloud, sync with API

Rename the CLI binary and all references from `wild` to `wildcloud`
across Go source, packaging scripts, docs, and e2e tests.

Add missing CLI commands: app restart, operation cancel.
This commit is contained in:
2026-08-01 23:00:37 +00:00
parent 01a688a70c
commit 72e041e9e6
32 changed files with 277 additions and 236 deletions

View File

@@ -7,7 +7,7 @@ This project is called "Wild Cloud". Wild Cloud is a platform for managing and o
The core Wild Cloud components are:
- **API** (`wild-cloud/api`): The Wild Cloud API for managing Kubernetes clusters and app deployments. @api/AGENTS.md
- **CLI** (`wild-cloud/cli`): Command-line interface for managing Wild Cloud instances. @cli/README.md
- **CLI** (`wild-cloud/cli`): The `wildcloud` command-line interface for managing Wild Cloud instances. @cli/README.md
- **Web App** (`wild-cloud/web`): Web-based interface for managing Wild Cloud instances. @web/AGENTS.md
- **Dist** (`wild-cloud/dist`): Distribution and packaging tooling. @dist/README.md

View File

@@ -1,16 +1,16 @@
#!/usr/bin/env bash
# Test: CLI lifecycle — verify wild CLI commands work
# Test: CLI lifecycle — verify wildcloud CLI commands work
# Check if wild binary is available
if ! command -v wild &>/dev/null; then
# Check if wildcloud binary is available
if ! command -v wildcloud &>/dev/null; then
# Try the build directory
WILD_BIN="/home/payne/repos/wild-cloud-dev/wild-cloud/cli/build/wild"
WILD_BIN="/home/payne/repos/wild-cloud-dev/wild-cloud/cli/build/wildcloud"
if [[ ! -x "$WILD_BIN" ]]; then
test_skip "CLI: wild binary not found (run 'make build' in cli/)"
test_skip "CLI: wildcloud binary not found (run 'make build' in cli/)"
return 0 2>/dev/null || true
fi
else
WILD_BIN="wild"
WILD_BIN="wildcloud"
fi
CLI_FLAGS="--daemon-url ${API_URL}"

View File

@@ -1,7 +1,7 @@
.PHONY: help build dev test clean install lint fmt vet
# Binary name
BINARY_NAME=wild
BINARY_NAME=wildcloud
BUILD_DIR=build
# Go parameters

View File

@@ -1,17 +1,16 @@
# Wild CLI
# Wild Cloud CLI
The Wild CLI is a command-line interface for advanced users who prefer to manage Wild Cloud from the terminal. It communicates with the Wild Central Daemon (wildd) to perform actions.
The Wild Cloud CLI (`wildcloud`) is a command-line interface for managing Wild Cloud instances, clusters, nodes, and applications. It communicates with the Wild Cloud API daemon.
## Usage
```bash
wild --help
wildcloud --help
```
## Development
```bash
make build
build/wild --help
build/wildcloud --help
```

View File

@@ -261,6 +261,26 @@ var appUpgradePlanCmd = &cobra.Command{
},
}
var appRestartCmd = &cobra.Command{
Use: "restart <app>",
Short: "Restart an app",
Args: cobra.ExactArgs(1),
RunE: func(cmd *cobra.Command, args []string) error {
inst, err := getInstanceName()
if err != nil {
return err
}
_, err = apiClient.Post(fmt.Sprintf("/api/v1/instances/%s/apps/%s/restart", inst, args[0]), nil)
if err != nil {
return err
}
fmt.Printf("App restarted: %s\n", args[0])
return nil
},
}
var (
appFetchFlag bool
appNoDeployFlag bool
@@ -285,9 +305,9 @@ This command combines 'app add' and 'app deploy' into a single step:
2. Deploy app to cluster (unless --no-deploy)
Examples:
wild app install gitea
wild app install gitea --no-deploy
wild app install gitea --fetch`,
wildcloud app install gitea
wildcloud app install gitea --no-deploy
wildcloud app install gitea --fetch`,
Args: cobra.ExactArgs(1),
RunE: func(cmd *cobra.Command, args []string) error {
appName := args[0]
@@ -367,7 +387,7 @@ Examples:
if err := streamOperationOutput(opID); err != nil {
fmt.Printf("\nCouldn't stream output: %v\n", err)
fmt.Printf("Operation ID: %s\n", opID)
fmt.Printf("Monitor with: wild operation get %s\n", opID)
fmt.Printf("Monitor with: wildcloud operation get %s\n", opID)
} else {
fmt.Printf("\nApp installed successfully: %s\n", appName)
}
@@ -516,7 +536,7 @@ var appConfigUpdateCmd = &cobra.Command{
if err := streamOperationOutput(opID); err != nil {
fmt.Printf("\nCouldn't stream output: %v\n", err)
fmt.Printf("Operation ID: %s\n", opID)
fmt.Printf("Monitor with: wild operation get %s\n", opID)
fmt.Printf("Monitor with: wildcloud operation get %s\n", opID)
} else {
fmt.Printf("\nApp redeployed successfully\n")
}
@@ -602,6 +622,7 @@ func init() {
appCmd.AddCommand(appInstallCmd)
appCmd.AddCommand(appUpdateCmd)
appCmd.AddCommand(appDeleteCmd)
appCmd.AddCommand(appRestartCmd)
appCmd.AddCommand(appStatusCmd)
appCmd.AddCommand(appLogsCmd)
appCmd.AddCommand(appConfigUpdateCmd)

View File

@@ -16,7 +16,7 @@ var backupCmd = &cobra.Command{
Short: "Manage app backups",
Long: `Backup and manage Wild Cloud application data including databases, persistent volumes, and configuration.
When called with an app name directly (e.g., 'wild backup myapp'), it starts a backup.
When called with an app name directly (e.g., 'wildcloud backup myapp'), it starts a backup.
Use subcommands for other operations (list, verify, delete, etc.).`,
Args: cobra.MaximumNArgs(1),
RunE: func(cmd *cobra.Command, args []string) error {
@@ -35,7 +35,7 @@ Use subcommands for other operations (list, verify, delete, etc.).`,
fmt.Printf("✓ Backup started for app: %s\n", args[0])
if opID := resp.GetString("operation_id"); opID != "" {
fmt.Printf(" Operation ID: %s\n", opID)
fmt.Printf("\nUse 'wild operation status %s' to monitor progress\n", opID)
fmt.Printf("\nUse 'wildcloud operation status %s' to monitor progress\n", opID)
}
return nil
}
@@ -277,7 +277,7 @@ var backupAllCmd = &cobra.Command{
fmt.Printf("\nBackup summary: %d successful, %d failed\n", successCount, failCount)
if successCount > 0 {
fmt.Println("\nUse 'wild operation list' to monitor backup progress")
fmt.Println("\nUse 'wildcloud operation list' to monitor backup progress")
}
return nil
@@ -397,7 +397,7 @@ var restoreCmd = &cobra.Command{
If no timestamp is provided, restores from the most recent backup.
By default, the restore deploys to a standby namespace. After verifying,
use 'wild restore switch <app>' to switch traffic, then 'wild restore cleanup <app>'
use 'wildcloud restore switch <app>' to switch traffic, then 'wildcloud restore cleanup <app>'
to remove the previous deployment.
With --auto, the entire cycle (restore, switch, cleanup) runs as one operation.`,
@@ -430,7 +430,7 @@ With --auto, the entire cycle (restore, switch, cleanup) runs as one operation.`
fmt.Printf("✓ Restore started for app: %s\n", args[0])
if opID := resp.GetString("operation_id"); opID != "" {
fmt.Printf(" Operation ID: %s\n", opID)
fmt.Printf("\nUse 'wild operation status %s' to monitor progress\n", opID)
fmt.Printf("\nUse 'wildcloud operation status %s' to monitor progress\n", opID)
}
if autoComplete {
@@ -438,8 +438,8 @@ With --auto, the entire cycle (restore, switch, cleanup) runs as one operation.`
} else {
fmt.Println("\nAfter restore completes:")
fmt.Printf(" 1. Verify the standby deployment\n")
fmt.Printf(" 2. Run 'wild restore switch %s' to switch traffic\n", args[0])
fmt.Printf(" 3. Run 'wild restore cleanup %s' to remove previous deployment\n", args[0])
fmt.Printf(" 2. Run 'wildcloud restore switch %s' to switch traffic\n", args[0])
fmt.Printf(" 3. Run 'wildcloud restore cleanup %s' to remove previous deployment\n", args[0])
}
return nil
@@ -466,7 +466,7 @@ var restoreSwitchCmd = &cobra.Command{
fmt.Printf("✓ Switch started for app: %s\n", args[0])
if opID := resp.GetString("operation_id"); opID != "" {
fmt.Printf(" Operation ID: %s\n", opID)
fmt.Printf("\nUse 'wild operation status %s' to monitor progress\n", opID)
fmt.Printf("\nUse 'wildcloud operation status %s' to monitor progress\n", opID)
}
return nil
@@ -493,7 +493,7 @@ var restoreCleanupCmd = &cobra.Command{
fmt.Printf("✓ Cleanup started for app: %s\n", args[0])
if opID := resp.GetString("operation_id"); opID != "" {
fmt.Printf(" Operation ID: %s\n", opID)
fmt.Printf("\nUse 'wild operation status %s' to monitor progress\n", opID)
fmt.Printf("\nUse 'wildcloud operation status %s' to monitor progress\n", opID)
}
return nil
@@ -662,9 +662,9 @@ var scheduleCreateCmd = &cobra.Command{
Long: `Create an automatic backup schedule for an application.
Examples:
wild backup schedule create gitea --frequency daily --time 02:00
wild backup schedule create immich --frequency weekly --time 03:00 --day-of-week 0
wild backup schedule create nextcloud --frequency monthly --day-of-month 1`,
wildcloud backup schedule create gitea --frequency daily --time 02:00
wildcloud backup schedule create immich --frequency weekly --time 03:00 --day-of-week 0
wildcloud backup schedule create nextcloud --frequency monthly --day-of-month 1`,
Args: cobra.ExactArgs(1),
RunE: func(cmd *cobra.Command, args []string) error {
inst, err := getInstanceName()

View File

@@ -24,7 +24,7 @@ var clusterBootstrapCmd = &cobra.Command{
This should be run once after the first control plane node is configured.
Example:
wild cluster bootstrap test-control-1`,
wildcloud cluster bootstrap test-control-1`,
Args: cobra.ExactArgs(1),
RunE: func(cmd *cobra.Command, args []string) error {
inst, err := getInstanceName()
@@ -102,10 +102,10 @@ By default, retrieves the existing kubeconfig file. Use --generate to
regenerate it from the cluster (useful if the file was lost or corrupted).
Examples:
wild cluster kubeconfig # Get existing kubeconfig
wild cluster kubeconfig --persist # Get and save locally
wild cluster kubeconfig --generate # Regenerate from cluster
wild cluster kubeconfig --generate --persist # Regenerate and save locally`,
wildcloud cluster kubeconfig # Get existing kubeconfig
wildcloud cluster kubeconfig --persist # Get and save locally
wildcloud cluster kubeconfig --generate # Regenerate from cluster
wildcloud cluster kubeconfig --generate --persist # Regenerate and save locally`,
RunE: func(cmd *cobra.Command, args []string) error {
inst, err := getInstanceName()
if err != nil {
@@ -263,10 +263,10 @@ and retrieves the kubeconfig for cluster access.
Examples:
# Configure endpoints to use VIP only
wild cluster endpoints
wildcloud cluster endpoints
# Include all control node IPs as fallback endpoints
wild cluster endpoints --nodes`,
wildcloud cluster endpoints --nodes`,
RunE: func(cmd *cobra.Command, args []string) error {
inst, err := getInstanceName()
if err != nil {

View File

@@ -223,7 +223,7 @@ The instance can still be overridden with the --instance flag.`,
if hasConfigs {
fmt.Println("\nTo configure your environment, run:")
fmt.Println(" source <(wild instance env)")
fmt.Println(" source <(wildcloud instance env)")
}
return nil
@@ -236,7 +236,7 @@ var instanceEnvCmd = &cobra.Command{
Long: `Output export commands for TALOSCONFIG and KUBECONFIG.
Usage:
source <(wild instance env)
source <(wildcloud instance env)
This will set environment variables for the current instance's talosconfig and kubeconfig files if they exist.`,
RunE: func(cmd *cobra.Command, args []string) error {

View File

@@ -26,8 +26,8 @@ If a subnet is provided (e.g., 192.168.1.0/24), only that subnet will be scanned
If no subnet is provided, all local networks will be automatically detected and scanned.
Examples:
wild node discover # Auto-detect local networks
wild node discover 192.168.1.0/24 # Scan specific subnet`,
wildcloud node discover # Auto-detect local networks
wildcloud node discover 192.168.1.0/24 # Scan specific subnet`,
Args: cobra.MaximumNArgs(1),
RunE: func(cmd *cobra.Command, args []string) error {
inst, err := getInstanceName()
@@ -145,7 +145,7 @@ This queries the node for available network interfaces and disks, helping you
decide which hardware to use when adding the node to the cluster.
Example:
wild node detect 192.168.1.31
wildcloud node detect 192.168.1.31
Output shows:
- Available network interfaces
@@ -212,7 +212,7 @@ Output shows:
}
fmt.Printf("\nTo add this node:\n")
fmt.Printf(" wild node add <hostname> <role> --current-ip %s --target-ip <target-ip> --disk <disk> --interface <interface>\n", nodeIP)
fmt.Printf(" wildcloud node add <hostname> <role> --current-ip %s --target-ip <target-ip> --disk <disk> --interface <interface>\n", nodeIP)
return nil
},
@@ -307,10 +307,10 @@ The node configuration will be stored in the instance config and used during app
Examples:
# Node in maintenance mode (PXE booted)
wild node add control-1 controlplane --current-ip 192.168.1.100 --target-ip 192.168.1.31 --disk /dev/sda
wildcloud node add control-1 controlplane --current-ip 192.168.1.100 --target-ip 192.168.1.31 --disk /dev/sda
# Node already applied (unusual, only if config was removed manually)
wild node add worker-1 worker --target-ip 192.168.1.32 --disk /dev/nvme0n1`,
wildcloud node add worker-1 worker --target-ip 192.168.1.32 --disk /dev/nvme0n1`,
Args: cobra.ExactArgs(2),
RunE: func(cmd *cobra.Command, args []string) error {
inst, err := getInstanceName()
@@ -383,10 +383,10 @@ This command:
Examples:
# Apply to node in maintenance mode (PXE booted)
wild node apply control-1
wildcloud node apply control-1
# Re-apply to production node (updates configuration)
wild node apply worker-1`,
wildcloud node apply worker-1`,
Args: cobra.ExactArgs(1),
RunE: func(cmd *cobra.Command, args []string) error {
inst, err := getInstanceName()
@@ -416,13 +416,13 @@ This command modifies node properties without requiring all fields.
Examples:
# Update disk after hardware change
wild node update worker-1 --disk /dev/sdb
wildcloud node update worker-1 --disk /dev/sdb
# Move node to maintenance mode
wild node update control-1 --current-ip 192.168.1.100 --maintenance
wildcloud node update control-1 --current-ip 192.168.1.100 --maintenance
# Clear maintenance after successful apply
wild node update control-1 --no-maintenance`,
wildcloud node update control-1 --no-maintenance`,
Args: cobra.ExactArgs(1),
RunE: func(cmd *cobra.Command, args []string) error {
inst, err := getInstanceName()
@@ -540,8 +540,8 @@ var nodeHealthCmd = &cobra.Command{
and scanning kernel messages for hardware errors.
Examples:
wild node health control-1
wild node health worker-2`,
wildcloud node health control-1
wildcloud node health worker-2`,
Args: cobra.ExactArgs(1),
RunE: func(cmd *cobra.Command, args []string) error {
inst, err := getInstanceName()
@@ -618,8 +618,8 @@ var nodeRebootCmd = &cobra.Command{
rejoin the cluster automatically. Running workloads on this node will be interrupted.
Examples:
wild node reboot control-1
wild node reboot worker-2`,
wildcloud node reboot control-1
wildcloud node reboot worker-2`,
Args: cobra.ExactArgs(1),
RunE: func(cmd *cobra.Command, args []string) error {
inst, err := getInstanceName()
@@ -646,8 +646,8 @@ This is an async operation that upgrades the node and reboots it.
The node must be applied and not in maintenance mode.
Examples:
wild node upgrade control-1 v1.12.0
wild node upgrade worker-1 v1.12.0 --schematic-id 434a0300...`,
wildcloud node upgrade control-1 v1.12.0
wildcloud node upgrade worker-1 v1.12.0 --schematic-id 434a0300...`,
Args: cobra.ExactArgs(2),
RunE: func(cmd *cobra.Command, args []string) error {
inst, err := getInstanceName()
@@ -686,7 +686,7 @@ Talos retains the previous kernel and OS image, so rollback restores
the previous boot image. The node must be applied and not in maintenance mode.
Examples:
wild node rollback control-1`,
wildcloud node rollback control-1`,
Args: cobra.ExactArgs(1),
RunE: func(cmd *cobra.Command, args []string) error {
inst, err := getInstanceName()
@@ -718,8 +718,8 @@ For control plane nodes, the etcd member is removed from the cluster first
via a healthy peer. The node remains in the configuration for reconfiguration.
Examples:
wild node reset control-2
wild node reset worker-1`,
wildcloud node reset control-2
wildcloud node reset worker-1`,
Args: cobra.ExactArgs(1),
RunE: func(cmd *cobra.Command, args []string) error {
inst, err := getInstanceName()

View File

@@ -75,9 +75,30 @@ var operationListCmd = &cobra.Command{
},
}
var operationCancelCmd = &cobra.Command{
Use: "cancel <id>",
Short: "Cancel a running operation",
Args: cobra.ExactArgs(1),
RunE: func(cmd *cobra.Command, args []string) error {
inst, err := getInstanceName()
if err != nil {
return err
}
_, err = apiClient.Post(fmt.Sprintf("/api/v1/instances/%s/operations/%s/cancel", inst, args[0]), nil)
if err != nil {
return err
}
fmt.Printf("Operation cancelled: %s\n", args[0])
return nil
},
}
func init() {
operationCmd.AddCommand(operationGetCmd)
operationCmd.AddCommand(operationListCmd)
operationCmd.AddCommand(operationCancelCmd)
}
// streamOperationOutput streams operation output via SSE

View File

@@ -23,9 +23,9 @@ var (
// rootCmd represents the base command
var rootCmd = &cobra.Command{
Use: "wild",
Use: "wildcloud",
Short: "Wild Cloud CLI",
Long: `wild-cli is the command-line interface for Wild Cloud.
Long: `wildcloud is the command-line interface for Wild Cloud.
Manage Wild Cloud instances, nodes, clusters, and applications.`,
PersistentPreRunE: func(cmd *cobra.Command, args []string) error {
@@ -98,7 +98,7 @@ func getInstanceName() (string, error) {
instance, _, err := config.GetCurrentInstance(instanceName, lister)
if err != nil {
return "", fmt.Errorf("%w\n(Hint: set with --instance flag, WILD_INSTANCE env var, or 'wild instance use <name>')", err)
return "", fmt.Errorf("%w\n(Hint: set with --instance flag, WILD_INSTANCE env var, or 'wildcloud instance use <name>')", err)
}
return instance, nil
}

View File

@@ -21,8 +21,8 @@ By default, shows stable versions only (no alpha/beta, latest minor lines).
Use --all to show all available versions.
Examples:
wild talos versions
wild talos versions --all`,
wildcloud talos versions
wildcloud talos versions --all`,
RunE: func(cmd *cobra.Command, args []string) error {
all, _ := cmd.Flags().GetBool("all")
@@ -60,7 +60,7 @@ The schematic's extensions are cross-referenced against the extensions
available for the specified version. Exits with code 1 if incompatible.
Examples:
wild talos validate 434a0300db532066f1098e05ac068159371d00f0aba0a3103a0e826e83825c82 v1.11.5`,
wildcloud talos validate 434a0300db532066f1098e05ac068159371d00f0aba0a3103a0e826e83825c82 v1.11.5`,
Args: cobra.ExactArgs(2),
RunE: func(cmd *cobra.Command, args []string) error {
schematicID := args[0]
@@ -98,7 +98,7 @@ var talosClientCmd = &cobra.Command{
Long: `Show the version, path, and architecture of the talosctl binary on Wild Central.
Examples:
wild talos client`,
wildcloud talos client`,
RunE: func(cmd *cobra.Command, args []string) error {
resp, err := apiClient.Get("/api/v1/talos/client")
if err != nil {
@@ -120,7 +120,7 @@ var talosClientUpgradeCmd = &cobra.Command{
Downloads the binary from the official Talos GitHub releases.
Examples:
wild talos client upgrade v1.13.0`,
wildcloud talos client upgrade v1.13.0`,
Args: cobra.ExactArgs(1),
RunE: func(cmd *cobra.Command, args []string) error {
version := args[0]

View File

@@ -18,7 +18,7 @@ var versionCmd = &cobra.Command{
Short: "Show version information",
Long: `Display version information for the CLI and optionally for the cluster.`,
Run: func(cmd *cobra.Command, args []string) {
fmt.Printf("wild-cli version: %s\n", Version)
fmt.Printf("wildcloud version: %s\n", Version)
fmt.Printf("Git commit: %s\n", GitCommit)
fmt.Printf("Build time: %s\n", BuildTime)

4
dist/Makefile vendored
View File

@@ -20,8 +20,8 @@ CLI_SOURCE := ../cli
# Output files
ARM64_BINARY := $(BUILD_DIR)/wild-cloud-arm64
AMD64_BINARY := $(BUILD_DIR)/wild-cloud-amd64
ARM64_CLI := $(BUILD_DIR)/wild-cli-arm64
AMD64_CLI := $(BUILD_DIR)/wild-cli-amd64
ARM64_CLI := $(BUILD_DIR)/wildcloud-cli-arm64
AMD64_CLI := $(BUILD_DIR)/wildcloud-cli-amd64
WEB_DIST_MARKER := $(BUILD_DIR)/.web-built
ARM64_DEB := $(DIST_DIR)/packages/wild-cloud_$(VERSION)_arm64.deb
AMD64_DEB := $(DIST_DIR)/packages/wild-cloud_$(VERSION)_amd64.deb

4
dist/README.md vendored
View File

@@ -58,9 +58,9 @@ sudo apt-get install -f
## Release Artifacts
Each release includes:
- `wild-cloud_{VERSION}_{arch}.deb` — full install (daemon + web UI + `wild` CLI)
- `wild-cloud_{VERSION}_{arch}.deb` — full install (daemon + web UI + `wildcloud` CLI)
- `wild-cloud-{arch}` — standalone API daemon (for Docker/K8s)
- `wild-cli-{arch}` — standalone CLI (for CI/CD or remote management)
- `wildcloud-cli-{arch}` — standalone CLI (for CI/CD or remote management)
- `SHA256SUMS` — checksums for all artifacts
## Developer Tooling

View File

@@ -41,7 +41,7 @@ if [ -n "$RELEASE_ID" ]; then
"${API_URL}/repos/${OWNER}/${REPO}/releases/${RELEASE_ID}/assets/${ASSET_ID}" \
| jq -r '.name')
if [[ "$ASSET_NAME" == *.deb ]] || [[ "$ASSET_NAME" == wild-cloud-* ]] || [[ "$ASSET_NAME" == wild-cli-* ]] || [[ "$ASSET_NAME" == "SHA256SUMS" ]]; then
if [[ "$ASSET_NAME" == *.deb ]] || [[ "$ASSET_NAME" == wild-cloud-* ]] || [[ "$ASSET_NAME" == wildcloud-cli-* ]] || [[ "$ASSET_NAME" == "SHA256SUMS" ]]; then
echo " Deleting old asset: ${ASSET_NAME}"
curl -s -X DELETE -H "Authorization: token ${TOKEN}" \
"${API_URL}/repos/${OWNER}/${REPO}/releases/${RELEASE_ID}/assets/${ASSET_ID}"
@@ -62,7 +62,7 @@ INSTALL_DOCS="### Installation
#### Full Installation (.deb package)
Download the appropriate .deb package for your architecture. Includes API daemon, web interface, and \`wild\` CLI:
Download the appropriate .deb package for your architecture. Includes API daemon, web interface, and \`wildcloud\` CLI:
- **arm64**: \`wild-cloud_${VERSION}_arm64.deb\` — Raspberry Pi 4/5, ARM servers
- **amd64**: \`wild-cloud_${VERSION}_amd64.deb\` — x86_64 systems
@@ -79,7 +79,7 @@ sudo systemctl enable --now wild-cloud
#### Standalone Binaries
- \`wild-cloud-{arch}\` — API daemon only (Docker/K8s)
- \`wild-cli-{arch}\` — CLI only (CI/CD, remote management)
- \`wildcloud-cli-{arch}\` — CLI only (CI/CD, remote management)
#### Verification
@@ -137,7 +137,7 @@ fi
echo ""
echo "Generating checksums..."
cd dist
sha256sum packages/*.deb bin/wild-cloud-* bin/wild-cli-* > SHA256SUMS
sha256sum packages/*.deb bin/wild-cloud-* bin/wildcloud-cli-* > SHA256SUMS
echo "Created SHA256SUMS"
cd ..
@@ -185,8 +185,8 @@ for BINARY in ${BINARIES_DIR}/wild-cloud-*; do
fi
done
# Upload CLI binaries (wild-cli-arm64, wild-cli-amd64)
for BINARY in ${BINARIES_DIR}/wild-cli-arm64 ${BINARIES_DIR}/wild-cli-amd64; do
# Upload CLI binaries (wildcloud-cli-arm64, wildcloud-cli-amd64)
for BINARY in ${BINARIES_DIR}/wildcloud-cli-arm64 ${BINARIES_DIR}/wildcloud-cli-amd64; do
if [ -f "$BINARY" ]; then
upload_file "$BINARY"
fi

View File

@@ -22,7 +22,7 @@ cp -r debian/ "${BUILD_DIR}/${DEB_DIR}-${ARCH}/"
# Copy binaries to correct location
mkdir -p "${BUILD_DIR}/${DEB_DIR}-${ARCH}/usr/bin"
cp "${BINARY_PATH}" "${BUILD_DIR}/${DEB_DIR}-${ARCH}/usr/bin/wild-cloud"
cp "${CLI_PATH}" "${BUILD_DIR}/${DEB_DIR}-${ARCH}/usr/bin/wild"
cp "${CLI_PATH}" "${BUILD_DIR}/${DEB_DIR}-${ARCH}/usr/bin/wildcloud"
# Copy static web files from built web app
mkdir -p "${BUILD_DIR}/${DEB_DIR}-${ARCH}/var/www/html/wild-cloud"
@@ -45,10 +45,10 @@ sed -i "s/ARCH_PLACEHOLDER/${ARCH}/g" "${BUILD_DIR}/${DEB_DIR}-${ARCH}/DEBIAN/co
# Build package and copy to dist directories
dpkg-deb --root-owner-group --build "${BUILD_DIR}/${DEB_DIR}-${ARCH}" "${BUILD_DIR}/wild-cloud_${VERSION}_${ARCH}.deb"
cp "${BINARY_PATH}" "${DIST_DIR}/bin/wild-cloud-${ARCH}"
# Copy CLI with wild-cli name for standalone downloads (installs as 'wild' in package)
cp "${CLI_PATH}" "${DIST_DIR}/bin/wild-cli-${ARCH}"
# Copy CLI for standalone downloads
cp "${CLI_PATH}" "${DIST_DIR}/bin/wildcloud-cli-${ARCH}"
cp "${BUILD_DIR}/wild-cloud_${VERSION}_${ARCH}.deb" "${DIST_DIR}/packages/"
echo "Package created: ${DIST_DIR}/packages/wild-cloud_${VERSION}_${ARCH}.deb"
echo "API daemon binary copied: ${DIST_DIR}/bin/wild-cloud-${ARCH}"
echo "CLI binary copied: ${DIST_DIR}/bin/wild-cli-${ARCH}"
echo "CLI binary copied: ${DIST_DIR}/bin/wildcloud-cli-${ARCH}"

View File

@@ -97,7 +97,7 @@ Templates exist in Wild Directory. No instance or cluster state.
### ADDED (State 1)
After `wild app add {app}`:
After `wildcloud app add {app}`:
1. Read manifest, resolve gomplate variables with instance config
2. Generate random secrets for `defaultSecrets` (if no default)
3. Copy secrets from dependencies for `requiredSecrets`
@@ -108,7 +108,7 @@ Result: Local state consistent (config + secrets + compiled manifests). Cluster
### DEPLOYING (State 2)
During `wild app deploy {app}`:
During `wildcloud app deploy {app}`:
1. Pre-flight: check namespace status (must be Active or NotFound, not Terminating)
2. Create/update namespace (idempotent)
3. Create K8s secret from `secrets.yaml` (overwrite if exists)
@@ -173,7 +173,7 @@ All operations are idempotent: add (overwrites local), deploy (`kubectl apply`),
| Dependency not deployed | Deploy succeeds but pods CrashLoopBackOff. Future: pre-flight dep check |
| Secrets out of sync (K8s vs secrets.yaml) | Next deploy overwrites K8s secret. Always update secrets.yaml as source of truth |
| PVC retention after delete | Depends on ReclaimPolicy. Retain = data orphaned on re-add |
| Local state corrupted | `wild app add {app}` regenerates from Wild Directory |
| Local state corrupted | `wildcloud app add {app}` regenerates from Wild Directory |
| Secrets lost | Must re-add app (regenerates new secrets, apps need reconfiguration) |
## App Package Best Practices
@@ -213,5 +213,5 @@ Instance data dir as git repo. Wild Directory as upstream remote. `.gitignore` m
- Pre-flight dependency validation (check required apps deployed before deploy)
- Periodic state reconciliation (background job comparing local vs cluster state)
- Built-in PVC backup/restore (`wild app backup/restore`)
- Dry-run mode (`wild app deploy --dry-run`)
- Built-in PVC backup/restore (`wildcloud app backup/restore`)
- Dry-run mode (`wildcloud app deploy --dry-run`)

View File

@@ -112,39 +112,39 @@ backup:
```bash
# Quick backup (shorthand)
wild backup myapp
wildcloud backup myapp
# List all backups for an app
wild backup list myapp
wildcloud backup list myapp
# Verify a backup can be restored
wild backup verify myapp
wild backup verify myapp 20240228T120000Z # Specific timestamp
wildcloud backup verify myapp
wildcloud backup verify myapp 20240228T120000Z # Specific timestamp
# Delete a backup
wild backup delete myapp 20240228T120000Z
wildcloud backup delete myapp 20240228T120000Z
# Backup all deployed apps
wild backup all
wildcloud backup all
# Discover what resources will be backed up
wild backup discover myapp
wildcloud backup discover myapp
```
### Restore Operations
```bash
# Restore from latest backup
wild restore myapp
wildcloud restore myapp
# Restore from specific backup
wild restore myapp 20240228T120000Z
wildcloud restore myapp 20240228T120000Z
# Restore only configuration (skip data)
wild restore myapp --skip-data
wildcloud restore myapp --skip-data
# Restore specific components
wild restore myapp --components postgres,config
wildcloud restore myapp --components postgres,config
```
## Web UI
@@ -219,7 +219,7 @@ When an app is backed up, the system automatically identifies and backs up:
The backup system automatically discovers resources to backup:
```bash
$ wild backup discover immich
$ wildcloud backup discover immich
Discovered backup resources for app: immich
@@ -241,7 +241,7 @@ Configuration:
Backups can be verified to ensure they're restorable:
```bash
$ wild backup verify gitea
$ wildcloud backup verify gitea
✓ Backup verification successful for app: gitea
@@ -290,7 +290,7 @@ The backup system handles common failure scenarios:
Check that the app is deployed and running:
```bash
wild app status myapp
wildcloud app status myapp
```
### S3 Connection Errors

View File

@@ -33,7 +33,7 @@ Apps with matching images (safe to deploy): gitea, openproject, open-webui, list
### Orphaned Config Keys
`processConfigInOrder()` only adds new keys — it never removes keys dropped from a manifest's `defaultConfig`. After `wild app add`, orphaned flat keys (image, port, timezone, flat DB fields) remain in `config.yaml` and show in the UI. Manual cleanup of `config.yaml` is required, same as was done on test-cloud.
`processConfigInOrder()` only adds new keys — it never removes keys dropped from a manifest's `defaultConfig`. After `wildcloud app add`, orphaned flat keys (image, port, timezone, flat DB fields) remain in `config.yaml` and show in the UI. Manual cleanup of `config.yaml` is required, same as was done on test-cloud.
## Migration Plan
@@ -42,9 +42,9 @@ Apps with matching images (safe to deploy): gitea, openproject, open-webui, list
These can be migrated immediately once backup/restore is working:
1. Back up each app
2. `wild app add <app>` to recompile templates
2. `wildcloud app add <app>` to recompile templates
3. Clean orphaned keys from `config.yaml`
4. `wild app deploy <app>`
4. `wildcloud app deploy <app>`
5. Verify
Apps: gitea, listmonk, openproject, open-webui, keila, and all infrastructure apps (postgres, redis, memcached, metallb, cert-manager, etc.)

View File

@@ -42,8 +42,8 @@ The Raspberry Pi or server running Wild Central died, but the Kubernetes cluster
4. **Verify connectivity**:
```bash
wild instance use your-instance
wild cluster status
wildcloud instance use your-instance
wildcloud cluster status
```
The cluster is still running — your apps are live. Wild Central is just the management plane.
@@ -75,7 +75,7 @@ One or more nodes died but the cluster still has quorum (at least 2 of 3 control
4. **Add the new node** through the Wild Cloud web UI or CLI:
```bash
wild node add --role worker --ip <new-node-ip>
wildcloud node add --role worker --ip <new-node-ip>
```
5. **Verify workloads reschedule** to the new node:
@@ -147,30 +147,30 @@ All nodes are gone. You need to rebuild everything.
7. **Deploy infrastructure services first** (order matters):
```bash
wild instance use your-instance
wild service install metallb
wild service install traefik
wild service install cert-manager
wild service install external-dns
wild service install longhorn # If using Longhorn for PVCs
wildcloud instance use your-instance
wildcloud service install metallb
wildcloud service install traefik
wildcloud service install cert-manager
wildcloud service install external-dns
wildcloud service install longhorn # If using Longhorn for PVCs
```
8. **Deploy apps** (dependencies first, then apps):
```bash
# Deploy database services first
wild app deploy pg
wild app deploy redis
wildcloud app deploy pg
wildcloud app deploy redis
# Then deploy apps
wild app deploy gitea
wild app deploy immich
wildcloud app deploy gitea
wildcloud app deploy immich
# ... etc
```
If your git repo has compiled manifests, these deploys apply the exact same manifests that were running before. If not, you'll need to re-add apps from the Wild Directory first:
```bash
wild app add gitea
wild app deploy gitea
wildcloud app add gitea
wildcloud app deploy gitea
```
9. **Restore app data from backups**:
@@ -178,16 +178,16 @@ All nodes are gone. You need to rebuild everything.
# Restore each app's data (database + PVC) from the backup destination
# Use the Web UI: navigate to Backups > [app] > Restore
# Or via CLI:
wild restore gitea --auto
wild restore immich --auto
wildcloud restore gitea --auto
wildcloud restore immich --auto
```
The `--auto` flag runs the full blue-green restore cycle: restore to standby, switch traffic, then clean up the old namespace. For more control, run each phase separately — see [Restoring Backups](restoring-backups.md).
10. **Verify everything is working**:
```bash
wild app status gitea
wild app status immich
wildcloud app status gitea
wildcloud app status immich
kubectl get pods --all-namespaces
```

View File

@@ -75,10 +75,10 @@ backup:
**CLI:**
```bash
# Backup a single app
wild backup start gitea
wildcloud backup start gitea
# Shorthand
wild backup gitea
wildcloud backup gitea
```
### All Apps Backup
@@ -86,7 +86,7 @@ wild backup gitea
**CLI:**
```bash
# Backup all deployed apps
wild backup all
wildcloud backup all
```
### Cluster Config Backup
@@ -134,7 +134,7 @@ Cache volumes (names containing `-cache` or `-tmp`) and cache databases (Redis,
Before backing up for the first time, you can discover what persistent data an app has:
```bash
wild backup discover gitea
wildcloud backup discover gitea
```
This analyzes the app's manifest and kustomize resources to find databases and PVCs, showing what will be backed up and what will be skipped.
@@ -148,30 +148,30 @@ This analyzes the app's manifest and kustomize resources to find databases and P
**CLI:**
```bash
# Daily backup at 2 AM
wild backup schedule create gitea --frequency daily --time 02:00
wildcloud backup schedule create gitea --frequency daily --time 02:00
# Weekly backup on Sunday at 3 AM
wild backup schedule create gitea --frequency weekly --time 03:00 --day-of-week 0
wildcloud backup schedule create gitea --frequency weekly --time 03:00 --day-of-week 0
# Monthly backup on the 1st at midnight
wild backup schedule create gitea --frequency monthly --time 00:00 --day-of-month 1
wildcloud backup schedule create gitea --frequency monthly --time 00:00 --day-of-month 1
```
### Managing Schedules
```bash
# List all schedules
wild backup schedule list
wildcloud backup schedule list
# Enable/disable a schedule
wild backup schedule enable <schedule-id>
wild backup schedule disable <schedule-id>
wildcloud backup schedule enable <schedule-id>
wildcloud backup schedule disable <schedule-id>
# Manually trigger a schedule
wild backup schedule run <schedule-id>
wildcloud backup schedule run <schedule-id>
# Delete a schedule
wild backup schedule delete <schedule-id>
wildcloud backup schedule delete <schedule-id>
```
Retention is enforced automatically after each scheduled backup completes.
@@ -180,23 +180,23 @@ Retention is enforced automatically after each scheduled backup completes.
```bash
# List backups for an app
wild backup list gitea
wildcloud backup list gitea
# Verify a backup can be restored
wild backup verify gitea
wildcloud backup verify gitea
# Verify a specific backup
wild backup verify gitea 20250314T021530Z
wildcloud backup verify gitea 20250314T021530Z
```
## Deleting Backups
```bash
# Delete a specific backup
wild backup delete gitea 20250314T021530Z
wildcloud backup delete gitea 20250314T021530Z
# Skip confirmation
wild backup delete gitea 20250314T021530Z --yes
wildcloud backup delete gitea 20250314T021530Z --yes
```
## Backup Health
@@ -221,7 +221,7 @@ Plan statuses progress through: `backing_up` -> `backed_up` -> (restore phases w
### "No databases or PVCs found"
- The app has no database dependencies in its `manifest.yaml`
- No PVCs with matching labels exist in the app namespace
- Run `wild backup discover <app>` to see what's detected
- Run `wildcloud backup discover <app>` to see what's detected
### Longhorn backup fails
- Verify Longhorn backup target is configured (`kubectl get settings -n longhorn-system backup-target`)
@@ -233,8 +233,8 @@ Plan statuses progress through: `backing_up` -> `backed_up` -> (restore phases w
- Check that the database name in `config.yaml` matches the actual database
### Scheduled backups not running
- Verify the schedule is enabled: `wild backup schedule list`
- Check the Wild Central API is running: `wild daemon status`
- Verify the schedule is enabled: `wildcloud backup schedule list`
- Check the Wild Central API is running: `wildcloud daemon status`
## Security Notes

View File

@@ -32,10 +32,10 @@ Each check shows pass/fail status with detailed messages.
```bash
# Quick cluster health check
wild cluster health
wildcloud cluster health
# Cluster status overview
wild cluster status
wildcloud cluster status
# Check overall system health
wild health
@@ -67,10 +67,10 @@ The **Cluster** page shows all nodes with:
```bash
# List all nodes with status
wild node list
wildcloud node list
# Detailed node info
wild node show <hostname>
wildcloud node show <hostname>
```
### kubectl
@@ -94,13 +94,13 @@ The **Apps > Installed** page shows all deployed apps with real-time status (run
```bash
# List deployed apps with status
wild app list-deployed
wildcloud app list-deployed
# Detailed app status
wild app status <app>
wildcloud app status <app>
# View app logs
wild service logs <app> --follow
wildcloud service logs <app> --follow
```
### kubectl
@@ -146,10 +146,10 @@ The **Operations** page shows all operations with filtering by status (running,
```bash
# List recent operations
wild operation list
wildcloud operation list
# Check a specific operation
wild operation get <operation-id>
wildcloud operation get <operation-id>
```
## Storage Monitoring
@@ -199,7 +199,7 @@ kubectl run -i --tty --rm debug --image=busybox --restart=Never -- \
Wild Cloud does not currently include a built-in alerting system. For production environments, consider:
1. **Backup scheduling** with verification to catch backup failures early
2. **Periodic health checks** via `wild cluster health` in a cron job
2. **Periodic health checks** via `wildcloud cluster health` in a cron job
3. **External monitoring** pointing at your app URLs for uptime checks
## Next Steps

View File

@@ -26,7 +26,7 @@ Make sure you have:
List available backups first:
```bash
wild backup list gitea
wildcloud backup list gitea
```
## Restoring Applications
@@ -36,7 +36,7 @@ wild backup list gitea
The simplest approach runs all three phases automatically:
```bash
wild restore gitea --auto
wildcloud restore gitea --auto
```
This restores the latest backup, switches traffic, and cleans up the old deployment in one operation.
@@ -44,7 +44,7 @@ This restores the latest backup, switches traffic, and cleans up the old deploym
### Full Restore from Specific Backup
```bash
wild restore gitea 20250314T021530Z --auto
wildcloud restore gitea 20250314T021530Z --auto
```
### Step-by-Step Restore (Recommended for Critical Apps)
@@ -54,7 +54,7 @@ For production apps, run each phase separately so you can verify between steps:
**Step 1: Restore to standby**
```bash
wild restore gitea
wildcloud restore gitea
```
This creates a standby namespace (e.g., `gitea-green`) with the restored database and files. Your active app continues running in its current namespace.
@@ -71,13 +71,13 @@ kubectl get pods -n gitea-green
kubectl logs -n gitea-green deploy/gitea
# View the recovery plan
wild restore plan gitea
wildcloud restore plan gitea
```
**Step 3: Switch traffic**
```bash
wild restore switch gitea
wildcloud restore switch gitea
```
This updates the active deployment color in config.yaml and redirects traffic to the standby namespace.
@@ -85,7 +85,7 @@ This updates the active deployment color in config.yaml and redirects traffic to
**Step 4: Clean up**
```bash
wild restore cleanup gitea
wildcloud restore cleanup gitea
```
This removes the previous active namespace and resources.
@@ -100,16 +100,16 @@ Restore only specific components:
```bash
# Database only
wild restore gitea --components postgres
wildcloud restore gitea --components postgres
# Persistent volumes only
wild restore gitea --components pvc
wildcloud restore gitea --components pvc
# Config/manifests only (skip data)
wild restore gitea --skip-data
wildcloud restore gitea --skip-data
# Multiple specific components
wild restore gitea --components postgres,pvc
wildcloud restore gitea --components postgres,pvc
```
## How Each Component Is Restored
@@ -142,7 +142,7 @@ Extracts the tar.gz archive containing manifests, kustomization, and app-specifi
Each restore operation creates a recovery plan that tracks progress across all phases:
```bash
wild restore plan gitea
wildcloud restore plan gitea
```
The plan shows:
@@ -157,10 +157,10 @@ The plan shows:
```bash
# List available backups
wild backup list gitea
wildcloud backup list gitea
# Restore from before the problematic update
wild restore gitea 20250310T020000Z --auto
wildcloud restore gitea 20250310T020000Z --auto
```
### Complete Application Loss
@@ -169,13 +169,13 @@ If an app's namespace was deleted or corrupted:
```bash
# Make sure the app is added to the instance
wild app add gitea
wildcloud app add gitea
# Deploy the app (creates namespace and base resources)
wild app deploy gitea
wildcloud app deploy gitea
# Restore data from backup
wild restore gitea --auto
wildcloud restore gitea --auto
```
### Database-Only Recovery
@@ -184,31 +184,31 @@ If the app is running but the database is corrupted:
```bash
# Restore only the database to standby
wild restore gitea --components postgres
wildcloud restore gitea --components postgres
# Verify the restored database
kubectl exec -n postgres deploy/postgres -- \
psql -U postgres -d gitea_green -c "SELECT count(*) FROM repository;"
# Switch to the restored database
wild restore switch gitea
wildcloud restore switch gitea
# Clean up
wild restore cleanup gitea
wildcloud restore cleanup gitea
```
### Cross-Cluster Migration
On the source cluster:
```bash
wild backup gitea
wildcloud backup gitea
```
On the target cluster:
```bash
wild app add gitea
wild app deploy gitea
wild restore gitea --auto
wildcloud app add gitea
wildcloud app deploy gitea
wildcloud restore gitea --auto
```
## When Things Go Wrong
@@ -216,14 +216,14 @@ wild restore gitea --auto
### Restore Fails Mid-Way
If the restore phase fails, your active app is untouched. The standby namespace may contain partial data. You can:
- Fix the issue and retry: `wild restore gitea`
- Check what went wrong: `wild restore plan gitea`
- Fix the issue and retry: `wildcloud restore gitea`
- Check what went wrong: `wildcloud restore plan gitea`
- Clean up the failed standby manually: `kubectl delete namespace gitea-green`
### Switch Fails
If the switch phase fails, the standby is fully populated and ready. You can:
- Retry the switch: `wild restore switch gitea`
- Retry the switch: `wildcloud restore switch gitea`
- Inspect both namespaces and manually update config if needed
### App Won't Start After Restore
@@ -239,10 +239,10 @@ kubectl scale deployment/gitea -n gitea-green --replicas=1
```bash
# List all backups for the app
wild backup list gitea
wildcloud backup list gitea
# Check backup destination is configured
wild config get backup.destination
wildcloud config get backup.destination
```
## Verifying a Successful Restore

View File

@@ -4,10 +4,10 @@
```bash
# Wild Cloud cluster health (runs multiple checks)
wild cluster health
wildcloud cluster health
# Cluster status overview
wild cluster status
wildcloud cluster status
```
The web app **Dashboard** also shows health check results with pass/fail details.
@@ -125,7 +125,7 @@ ping <control-plane-vip>
talosctl --talosconfig <talosconfig-path> version --nodes <node-ip>
# Regenerate kubeconfig if needed
wild cluster kubeconfig --generate
wildcloud cluster kubeconfig --generate
```
## Related Guides

View File

@@ -59,7 +59,7 @@ kubectl get pods -n kube-system -l k8s-app=kube-proxy -o wide
**Intermittent connectivity failures**: Often caused by a Flannel pod crash or stale routing. Restart the Flannel pod on the affected node.
**CrowdSec blocking legitimate traffic**: Check CrowdSec decisions and bouncer status. See the CrowdSec service logs: `wild service logs crowdsec`.
**CrowdSec blocking legitimate traffic**: Check CrowdSec decisions and bouncer status. See the CrowdSec service logs: `wildcloud service logs crowdsec`.
## Related Guides

View File

@@ -48,7 +48,7 @@ kubectl get secret cloudflare-api-token -n cert-manager
If the token is missing or invalid, check your secrets and redeploy cert-manager:
```bash
wild service install cert-manager
wildcloud service install cert-manager
```
## 5. Check the ClusterIssuer
@@ -89,7 +89,7 @@ kubectl exec -n cert-manager deploy/cert-manager -- /scripts/repair-certificates
**Rate limited by Let's Encrypt**: Production rate limits are 50 certificates per domain per week. Switch to `letsencrypt-staging` for testing.
**Certificate exists but app shows invalid cert**: The wildcard secret may not have been copied to the app namespace. Redeploy the app: `wild app deploy <app>`.
**Certificate exists but app shows invalid cert**: The wildcard secret may not have been copied to the app namespace. Redeploy the app: `wildcloud app deploy <app>`.
## Related Guides

View File

@@ -105,7 +105,7 @@ kubectl get servicel2statuses.metallb.io -n metallb-system
kubectl get pods -n metallb-system -l component=speaker -o wide
# Reinstall MetalLB if configuration is wrong
wild service install metallb
wildcloud service install metallb
```
### 3. Check TLS Certificates
@@ -145,7 +145,7 @@ kubectl delete certificate wildcard-wild-cloud-tls -n cert-manager
# cert-manager will automatically re-create it
# Redeploy the app to copy TLS secrets to its namespace
wild app deploy <app>
wildcloud app deploy <app>
```
See [Troubleshoot TLS Certificates](troubleshoot-tls-certificates.md) for detailed cert debugging.

View File

@@ -12,7 +12,7 @@ The **Apps > Installed** page shows update indicators when a newer version is av
```bash
# Show the upgrade plan for a specific app
wild app upgrade-plan gitea
wildcloud app upgrade-plan gitea
```
The upgrade plan shows:
@@ -27,7 +27,7 @@ Most app updates are straightforward — a new container image tag with compatib
```bash
# Update the app from the Wild Directory
wild app update gitea
wildcloud app update gitea
```
This will:
@@ -42,16 +42,16 @@ For more control:
```bash
# Check what will change
wild app upgrade-plan gitea
wildcloud app upgrade-plan gitea
# Fetch updated files without deploying
wild app update gitea --no-deploy
wildcloud app update gitea --no-deploy
# Review the changes in your instance data directory
# (e.g., diff the compiled manifests)
# Deploy when ready
wild app deploy gitea
wildcloud app deploy gitea
```
## Waypoint Upgrades (Breaking Changes)
@@ -75,10 +75,10 @@ Each step may include:
```bash
# View the full upgrade plan
wild app upgrade-plan discourse
wildcloud app upgrade-plan discourse
# Run the upgrade (handles all steps automatically)
wild app update discourse
wildcloud app update discourse
```
The system processes each waypoint in order, running migrations at each step.
@@ -89,12 +89,12 @@ The upgrade plan will indicate when backups are recommended or required:
- **Required**: The upgrade won't proceed without a backup. Create one first:
```bash
wild backup gitea
wildcloud backup gitea
```
- **Recommended**: The upgrade will proceed but warns you. Create a backup for safety:
```bash
wild backup gitea
wildcloud backup gitea
```
## Rolling Back After a Bad Upgrade
@@ -103,18 +103,18 @@ If an upgrade causes problems, restore from your pre-upgrade backup:
```bash
# List available backups
wild backup list gitea
wildcloud backup list gitea
# Restore the pre-upgrade backup
wild restore gitea <pre-upgrade-timestamp> --auto
wildcloud restore gitea <pre-upgrade-timestamp> --auto
```
If you didn't take a backup, you can try reverting to the previous version:
```bash
# Re-add the old version (if the Wild Directory still has it as a waypoint)
wild app add gitea --version <old-version>
wild app deploy gitea
wildcloud app add gitea --version <old-version>
wildcloud app deploy gitea
```
## Infrastructure Service Upgrades
@@ -123,16 +123,16 @@ Infrastructure services (MetalLB, Traefik, cert-manager, etc.) follow the same u
```bash
# Check status
wild service status traefik
wildcloud service status traefik
# Update
wild service update traefik
wildcloud service update traefik
```
Or reinstall from the Wild Directory:
```bash
wild service install traefik --fetch
wildcloud service install traefik --fetch
```
## Troubleshooting
@@ -164,7 +164,7 @@ Migration jobs are designed to be idempotent — you can re-run the upgrade afte
If templates reference old config keys, the upgrade may have included `configMigrations` that didn't run. Check the app's manifest for renamed keys and update your config manually:
```bash
wild config show | grep <app>
wildcloud config show | grep <app>
```
## Related Guides

View File

@@ -12,10 +12,10 @@ Check which Kubernetes version is bundled with a Talos release at the [Talos rel
```bash
# Current Kubernetes version
wild cluster status
wildcloud cluster status
# Current Talos and Kubernetes versions per node
wild node list
wildcloud node list
# kubectl version
kubectl version
@@ -32,7 +32,7 @@ Since Kubernetes upgrades are part of Talos upgrades, follow the [Upgrade Talos]
```bash
# After upgrading all nodes, verify the Kubernetes version
wild cluster status
wildcloud cluster status
kubectl version
```

View File

@@ -4,18 +4,18 @@ This guide covers upgrading Talos Linux on your cluster nodes. Talos upgrades up
## Prerequisites
- Cluster is healthy: `wild cluster health`
- You know your current Talos version: `wild node list`
- You know the target version: `wild talos versions`
- Cluster is healthy: `wildcloud cluster health`
- You know your current Talos version: `wildcloud node list`
- You know the target version: `wildcloud talos versions`
## Check Available Versions
```bash
# List stable Talos versions
wild talos versions
wildcloud talos versions
# Include pre-release versions
wild talos versions --all
wildcloud talos versions --all
```
## Validate Schematic Compatibility
@@ -23,7 +23,7 @@ wild talos versions --all
Before upgrading, verify your node schematic (system extensions like NVIDIA drivers, NFS, etc.) is compatible with the target version:
```bash
wild talos validate <schematic-id> <target-version>
wildcloud talos validate <schematic-id> <target-version>
```
If extensions are missing for the target version, you may need to create a new schematic at [Image Factory](https://factory.talos.dev).
@@ -31,7 +31,7 @@ If extensions are missing for the target version, you may need to create a new s
## Upgrade a Node
```bash
wild node upgrade <hostname> <target-version>
wildcloud node upgrade <hostname> <target-version>
```
This will:
@@ -47,7 +47,7 @@ This will:
The operation runs asynchronously. Monitor progress with:
```bash
wild operation list
wildcloud operation list
```
## Upgrade Order
@@ -59,17 +59,17 @@ For multi-node clusters, upgrade nodes one at a time:
```bash
# Upgrade worker nodes
wild node upgrade worker-1 v1.11.5
wildcloud node upgrade worker-1 v1.11.5
# Wait for worker-1 to be Ready
wild node upgrade worker-2 v1.11.5
wildcloud node upgrade worker-2 v1.11.5
# Then control plane nodes (one at a time)
wild node upgrade control-1 v1.11.5
wildcloud node upgrade control-1 v1.11.5
# Verify etcd and cluster health
wild cluster health
wild node upgrade control-2 v1.11.5
wild cluster health
wild node upgrade control-3 v1.11.5
wildcloud cluster health
wildcloud node upgrade control-2 v1.11.5
wildcloud cluster health
wildcloud node upgrade control-3 v1.11.5
```
## Rollback
@@ -77,7 +77,7 @@ wild node upgrade control-3 v1.11.5
Talos uses an A/B image scheme — the previous version is always available. If an upgrade causes problems:
```bash
wild node rollback <hostname>
wildcloud node rollback <hostname>
```
This reverts the node to its previous Talos version and reboots.
@@ -88,10 +88,10 @@ If the target Talos version requires a newer talosctl (the client must be within
```bash
# Check current talosctl version
wild talos client
wildcloud talos client
# Upgrade talosctl
wild talos client upgrade <version>
wildcloud talos client upgrade <version>
```
## Update the Instance Schematic
@@ -99,8 +99,8 @@ wild talos client upgrade <version>
To change the default Talos schematic and version for your instance (used when adding new nodes):
```bash
wild config set cluster.nodes.talos.version v1.11.5
wild config set cluster.nodes.talos.schematicId <new-schematic-id>
wildcloud config set cluster.nodes.talos.version v1.11.5
wildcloud config set cluster.nodes.talos.schematicId <new-schematic-id>
```
Or via the API:
@@ -122,7 +122,7 @@ talosctl --talosconfig <talosconfig-path> services --nodes <node-ip>
talosctl --talosconfig <talosconfig-path> logs kubelet --nodes <node-ip>
# If the node won't come back, rollback
wild node rollback <hostname>
wildcloud node rollback <hostname>
```
### talosctl version mismatch
@@ -131,14 +131,14 @@ wild node rollback <hostname>
Error: talosctl version too old for target version
```
Upgrade talosctl first: `wild talos client upgrade <version>`
Upgrade talosctl first: `wildcloud talos client upgrade <version>`
### Schematic not available for target version
Create a new schematic at [factory.talos.dev](https://factory.talos.dev) with the extensions you need for the new version, then use the new schematic ID:
```bash
wild node upgrade <hostname> <version> --schematic-id <new-id>
wildcloud node upgrade <hostname> <version> --schematic-id <new-id>
```
## Related Guides

View File

@@ -5,7 +5,7 @@ This guide covers upgrading Wild Cloud Central itself — the API, CLI, and web
## Check Current Version
```bash
wild version
wildcloud version
```
This shows the CLI version and, if connected, the API version.
@@ -33,10 +33,10 @@ sudo systemctl restart wild-cloud-central
sudo systemctl status wild-cloud-central
# Check the version
wild version
wildcloud version
# Verify API is accessible
wild daemon status
wildcloud daemon status
```
## What Gets Upgraded