Install

Description

Create an agent in the Codefresh platform.

Command

codefresh install agent

Options

Option Alias Type Default Description
–help Print help information
–name Agent’s name to be created if token is not provided
–token Agent’s token
–kube-context-name Name of the kubernetes context where the runner is installed [$CF_ARG_KUBE_CONTEXT_NAME]
–kube-namespace Name of the namespace where the runner is installed [$CF_ARG_KUBE_NAMESPACE]
–kube-config-path Path to kubeconfig file (default is $HOME/.kube/config)
–install-runtime Create runtime and attach it to the agent (default is false)
–runtime-name The name of the runtime to install
–build-node-selector The kubernetes node selector “key=value” to be used by runner build resources (default is no node selector) (string)
–skip-re-creation If set to true, will skip runtime creation in the platform
–skip-cluster-creation If set to true, will skip cluster integration creation for this runtime
–make-default-runtime should all pipelines run on the hybrid runtime (default is false)
–storage-class-name Set a name of your custom storage class, note: this will not install volume provisioning components
–platform-only Deprecated, has no effect: agent and runtime are always created on the platform side only