Skip to main content
Version: master

Command - loft connect cluster

connect current cluster to Loft

Synopsis

loft connect cluster [flags]
########################################################
################# loft connect cluster #################
########################################################

Connect a cluster to the Loft instance.

Example:
loft connect cluster my-cluster
########################################################

Flags

      --context string            The kube context to use for installation
--display-name string The display name to show in the UI for this cluster
--egress-only-agent If true, will use an egress-only cluster enrollment feature (default true)
--helm-chart-path string The agent chart to deploy
--helm-set stringArray Extra helm values for the agent chart
--helm-values stringArray Extra helm values for the agent chart
-h, --help help for cluster
--insecure If true, deploys the agent in insecure mode
--namespace string The namespace to generate the service account in. The namespace will be created if it does not exist (default "loft")
--project string The project name to use for the project cluster
--service-account string The service account name to create (default "loft-admin")
--wait If true, will wait until the cluster is initialized

Global & Inherited Flags

      --config string       The loft config to use (will be created if it does not exist) (default "$HOME/.loft/config.json")
--debug Prints the stack trace if an error occurs
--log-output string The log format to use. Can be either plain, raw or json (default "plain")
--silent Run in silent mode and prevents any loft log output except panics & fatals