cub cluster up
cub cluster up
Create a kind cluster and attach it to ConfigHub, via Argo CD, Sveltos or Flux
Synopsis
Creates a local kind cluster and attaches it: "cub cluster create" followed by "cub cluster attach --provider kind", which sets up the controller, the cluster and apps Spaces, the service account, the gated OCI target, the root app-of-apps and k8sbot. See "cub cluster attach --help" for what attaching sets up; this help covers what "up" adds. Unlike a cluster attached by hand, one "up" brings up is torn down again with "cub cluster down".
The kind node gets a window of host ports mapped through: the first is the
controller UI's NodePort, so Argo CD is at http://localhost:
Admin credentials are written to source-ing into your shell along with KUBECONFIG and CUB_CONTEXT.
With --controller sveltos, Sveltos is installed instead of Argo CD, and the
apps Space is
With --controller flux, Flux is installed instead, and the apps Space is
Use --mount HOST[:CONTAINER] (repeatable) to bind-mount host directories into the cluster node.
--prune lets the controller delete what a removed deployment deployed; see "cub cluster attach --help". With Flux it does the same with Kustomizations: by default neither the root Kustomization nor a deployment's prunes, and --prune turns prune on for the root and for every deployment "cub variant create --target" adds later. Sveltos cannot be kept from deleting: its root always deletes a deployment's ClusterProfile whose Unit leaves the apps space, and a profile always deletes a resource that leaves its Release. By default a deployment's ClusterProfile has stopMatchingBehavior LeavePolicies, so deleting it leaves what it deployed running; --prune drops that, so what it deployed is withdrawn.
"cub cluster down" deletes the kind cluster again; the ConfigHub side is kept unless --delete-config is given.
cub cluster up [<name>] [flags]
Options
--controller string controller to install and wire to ConfigHub: argo (Argo CD), sveltos (Sveltos) or flux (Flux) (default "argo")
--controller-version string controller release to install (default: argo stable, sveltos v1.16.0, flux v2.9.2; Argo CD must be v3.1 or later, which oci:// sources need)
-h, --help help for up
--k8sbot-base string what to do with k8sbot's shared base Space when it already exists: update (install k8sbot's newest release over it, then clone it) or clone (clone it as it is); asked when stdin is a terminal, otherwise update
--k8sbot-installer install k8sbot's shared base Space with ConfigHub's installer, from its installer package, rather than from the deployment its image carries; needs the installer cub plugin (cub plugin install confighub/installer)
--mount stringArray host:container bind mount (repeatable; container path defaults to /mnt/<basename>)
--no-k8sbot skip installing k8sbot (the event-driven Argo CD sync, Sveltos redeploy, or Flux reconciliation, bot); 'cub cluster k8sbot-install' installs it later
--no-placeholder-gate skip the default vet-placeholders Trigger, allowing Releases with unfilled confighubplaceholder values to be published to this cluster
--no-ports only reserve the controller UI's NodePort (none for Flux); skip the user-app NodePort window
--prune let the controller delete what a removed deployment deployed: the root prunes deployments whose Units leave the apps space (Sveltos's always does), and deployments created later prune what they deployed
--registry string where to pull k8sbot's image from: ghcr, gcr, or a mirror prefix holding <prefix>/k8sbot, and <prefix>/packages/k8sbot for --k8sbot-installer (default ghcr)
--space string ConfigHub space slug for the cluster's target and k8sbot channel (the "target prefix"); the apps space is this slug + "-argo-apps", + "-sveltos-apps" with --controller sveltos, or + "-flux-apps" with --controller flux (defaults to <name>)
Options inherited from parent commands
--context string The context to use for this command
--debug Debug output
SEE ALSO
- cub cluster - Manage clusters wired into ConfigHub via Argo CD, Sveltos or Flux