Deploy your Cloudspace via CLI

Spot CLI (spotctl) BETA

The Spot CLI (spotctl) lets you manage Rackspace Spot resources from your terminal using a valid API token from the dashboard. It supports full CRUD for Cloudspaces, Node Pools (Spot and On-Demand), and helpful discovery commands for regions, organizations, server classes, and pricing.

When to use spotctl

  • Day‑to‑day management of Cloudspaces and node pools
  • Non-interactive automation and scripts
  • Quickly fetching kubeconfigs to use with kubectl (see: Access your Cloudspace via kubectl)

Quickstart

Prerequisites

  • Go 1.16+

Option 1: Download the binary from the releases page

Download from: Github Releases then move the binary to a directory in your PATH, for example

Bash
Copy

Option 2: Install using Go COMING SOON

Bash
Copy

Authenticate and Configure

1) In the Rackspace Spot Dashboard, navigate to API Access and generate a token.

2) Run the interactive configuration wizard:

Bash
Copy

3) Non-interactive configuration (example):

Bash
Copy

Notes:

  • You must provide organization name, region, and a valid refresh token from the dashboard.
  • Tokens can expire or be revoked; reconfigure if authentication fails.

Quickstart

List Cloudspaces

Bash
Copy

Create a Cloudspace

Interactive:

Quick flags:

Bash
Copy

Using a config file:

Bash
Copy

Command line arguments (JSON):

Bash
Copy

Command line arguments (comma-separated):

Bash
Copy

Get kubeconfig

Bash
Copy

Then follow: Access your Cloudspace via kubectl

spotctl Command Reference

Authentication

  • spotctl configure – interactive setup

Cloudspaces

  • spotctl cloudspaces list
  • spotctl cloudspaces get <name>
  • spotctl cloudspaces create [--config file | flags]
  • spotctl cloudspaces delete <name>
  • spotctl cloudspaces get-config <name> [--file <path>]

Node Pools – Spot

Bash
Copy

Node Pools – On‑Demand

Bash
Copy

Discovery

  • Server Classes: spotctl serverclasses list, spotctl serverclasses get <name>
  • Regions: spotctl regions list, spotctl regions get <name>
  • Organizations: spotctl organizations list, spotctl organizations get <id>
  • Pricing: spotctl pricing get <serverclass>

Output Formats

spotctl supports multiple output formats:

FormatDescriptionExample
JSONStructured JSON (default)spotctl regions list --output json
TableHuman‑readable tablespotctl serverclasses list --output table
YAMLYAML formattedspotctl organizations list --output yaml

Examples

Bash
Copy

Tips & Troubleshooting

  • Authentication failed: Re‑run spotctl configure with a fresh dashboard token.
  • Missing org/region: Provide --org/--region or set environment variables before invoking commands.
  • Kubeconfig rotation: If your downloaded kubeconfig expires, regenerate with spotctl cloudspaces get-config.
  • Output for automation: Use --output json and parse with jq in scripts.
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard