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)
1. Installation
Download the binary from Github
Download from: Github Releases then move the binary to a directory in your PATH, for example
Authenticate and Configure
In the Rackspace Spot Dashboard, navigate to API Access and generate a token.
Run the interactive configuration wizard:
Non-interactive configuration (example):
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.
3. Quickstart
Create a Cloudspace
Using the interactive deployment wizard:
Using a config file:
Command line arguments:
Get kubeconfig
Then follow: Access your Cloudspace via kubectl
spotctl Command Reference
Authentication
spotctl configure– interactive setup
Cloudspaces
spotctl cloudspaces listspotctl cloudspaces get <name>spotctl cloudspaces create [--config file | flags]spotctl cloudspaces delete <name>spotctl cloudspaces get-config <name> [--file <path>]
Node Pools – Spot
Node Pools – On‑Demand
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:
Format | Description | Example |
|---|---|---|
JSON | Structured JSON (default) |
|
Table | Human‑readable table |
|
YAML | YAML formatted |
|
Examples
Tips & Troubleshooting
Authentication failed: Re‑run
spotctl configurewith a fresh dashboard token.Missing org/region: Provide
--org/--regionor set environment variables before invoking commands.Kubeconfig rotation: If your downloaded kubeconfig expires, regenerate with
spotctl cloudspaces get-config.Output for automation: Use
--output jsonand parse withjqin scripts.
Related Docs
© 2023 RACKSPACE TECHNOLOGY