stratumctl admin services
Switch managed services (db, k8s, client-vpn, backup, s3, secrets, security) on or off
stratumctl admin services [flags]The service registry: every Stratum service, whether this install offers it, and whether it is on. Only managed services can be switched; a service the platform itself runs on is always on.
A service still in use cannot be switched off. “teardown” lists every live resource that switching it off would delete, asks for confirmation, deletes them, and switches the service off once none are left.
Prerequisites hold both ways: db requires s3 and secrets, so neither can be switched off while db is on, and db cannot be switched on while either is off.
Subcommands
Section titled “Subcommands”stratumctl admin services cancel-teardown: Stop a teardown that cannot finish; the service stays onstratumctl admin services disable: Switch a service off (refused while tenants still use it; see teardown)stratumctl admin services enable: Switch a service onstratumctl admin services get: Show one servicestratumctl admin services list: List every service with its statestratumctl admin services teardown: Delete every resource of a service, then switch it offstratumctl admin services teardown-status: Show a service teardown’s progress and what is left
stratumctl admin services cancel-teardown
Section titled “stratumctl admin services cancel-teardown”Stop a teardown that cannot finish; the service stays on
stratumctl admin services cancel-teardown <key> [flags]Stop a running teardown (a final snapshot that keeps failing, a resource that became blocked). The service stays on and tenants get it back. Deletes already issued are NOT undone.
Examples
Section titled “Examples”stratumctl admin services cancel-teardown dbstratumctl admin services disable
Section titled “stratumctl admin services disable”Switch a service off (refused while tenants still use it; see teardown)
stratumctl admin services disable <key> [flags]Examples
Section titled “Examples”stratumctl admin services disable dbstratumctl admin services enable
Section titled “stratumctl admin services enable”Switch a service on
stratumctl admin services enable <key> [flags]Examples
Section titled “Examples”stratumctl admin services enable dbstratumctl admin services get
Section titled “stratumctl admin services get”Show one service
stratumctl admin services get <key> [flags]Examples
Section titled “Examples”stratumctl admin services get dbstratumctl admin services get db --output jsonstratumctl admin services list
Section titled “stratumctl admin services list”List every service with its state
stratumctl admin services list [flags]Examples
Section titled “Examples”stratumctl admin services liststratumctl admin services list --output jsonstratumctl admin services teardown
Section titled “stratumctl admin services teardown”Delete every resource of a service, then switch it off
stratumctl admin services teardown <key> [flags]List every live resource of the service, grouped by project, and what happens to it (a database instance keeps a final snapshot, which is not deleted). At a terminal it then asks for confirmation; nothing is deleted without one.
In a script, run it once to see the plan and its id, then confirm that exact plan:
stratumctl admin services teardown dbstratumctl admin services teardown db --confirm tdp-0123456789abcdefIf anything was created or deleted in between, the plan id no longer matches: nothing is deleted and the new plan is shown to confirm again. A resource with a blocker (deletion protection, a blue/green deployment) stops the whole teardown until it is cleared through its own API.
Tenants are refused from the moment it starts; the service switches off once nothing is left (at the earliest a minute after the start). Follow it with “teardown-status”, or –wait.
Examples
Section titled “Examples”stratumctl admin services teardown dbstratumctl admin services teardown db --wait 10m| Flag | Type | Default | Description |
|---|---|---|---|
--confirm |
string | Execute this plan id (from an earlier run) without asking | |
--wait |
duration | 0s |
Wait up to this long for the teardown to finish (e.g. 10m) |
stratumctl admin services teardown-status
Section titled “stratumctl admin services teardown-status”Show a service teardown’s progress and what is left
stratumctl admin services teardown-status <key> [flags]Examples
Section titled “Examples”stratumctl admin services teardown-status db