cub cluster svc-account-bootstrap
cub cluster svc-account-bootstrap
Create a cluster's service account and put its credentials in the cluster
Synopsis
The second part of "cub cluster attach", on its own, for a cluster "cub cluster
controller-install" set up. "cub cluster attach
In ConfigHub it creates the cluster's identity, a service account with no
organization role named argo-
In the cluster it puts the service account's credentials:
a private key in the argobot-secrets Secret in the argobot namespace, which argobot authenticates with. Skipped with --no-k8sbot, for a cluster that will not run argobot; installing argobot later issues one. a pull token a token that does not expire, as the controller's registry credentials: Argo CD's confighub-oci-creds repo-creds Secret, Sveltos's confighub-gateway Secret, or Flux's confighub-oci Secret.
Neither credential is kept anywhere else: ConfigHub holds the public half of the key and a revocable record of the token.
A cluster that takes credentials only from a secret store, through the External Secrets Operator, gets them with --secrets-dir
"cub cluster detach
Examples: cub cluster create lab cub cluster controller-install lab --provider kind cub cluster svc-account-bootstrap lab cub cluster attach lab
cub cluster svc-account-bootstrap <name> [flags]
Options
-h, --help help for svc-account-bootstrap
--no-k8sbot skip argobot's private key, for a cluster that will not run argobot (installing argobot later issues one)
--secrets-dir string write the Secrets holding ConfigHub credentials (argobot's key, the controller's pull token) to this directory as Kubernetes Secret manifests instead of applying them, for a secret store, such as the External Secrets Operator, to put in the cluster
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