Skip to content

cub cluster down

cub cluster down

Tear down a kind cluster and its ConfigHub space

Synopsis

Tears down a cub-managed cluster.

Looks up the cluster's Space in the current cub context (via the confighub.com/cluster-name annotation). If found, deletes the kind cluster, then deletes the Space recursively (cascading Unit, Target, Worker), then removes the local kubeconfig.

If no matching Space is found in the current context, fails with a "are you in the right context?" hint. Pass --force to delete the local kind cluster + kubeconfig anyway, leaving any ConfigHub side untouched.

cub cluster down [flags]

Options

      --force         delete the local kind cluster + kubeconfig even if no matching ConfigHub Space is found in the current context
  -h, --help          help for down
      --name string   cluster name (required)

Options inherited from parent commands

      --context string   The context to use for this command
      --debug            Debug output

SEE ALSO

  • cub cluster - Manage local kind clusters wired into ConfigHub