Skip to content

cub worker install

cub worker install

Generate a worker configuration for a Kubernetes cluster

Synopsis

Generate a worker configuration to serve one or more provider types for a Kubernetes cluster.

Each ProviderType corresponds to one or more ToolchainTypes. For example, the "Kubernetes" provider type corresponds to the Kubernetes/YAML ToolchainType

Some ToolchainTypes are supported by multiple ProviderTypes, and some ProviderTypes support multiple ToolchainTypes.

The available ProviderTypes are:

  • ConfigHub
  • Kubernetes
  • ConfigMapRenderer
  • ArgoCDRenderer
  • FluxRenderer
  • ArgoCDOCI
  • OpenTofu/AWS

Here the provider types are case-insensitive and they can be comma-separated, like "kubernetes,configmap".

Use --export to display the configuration. Use --unit to create a unit in ConfigHub for the configuration.

The Secret resource is redacted by default. Use --include-secret to include it with the rest of the configuration or --export-secret-only to display only the Secret resource.

See the worker guide (https://docs.confighub.com/guide/workers/) for more details.

cub worker install [worker-name] [flags]

Options

      --deployment-name string     custom name for the Deployment and labels (defaults to worker slug)
  -e, --env strings                environment variables
      --export                     export manifest to stdout instead of applying it
      --export-secret-only         export only the Secret resource to stdout
      --functions string           file containing functions to execute on the created unit
  -h, --help                       help for install
      --host-network               use host networking for the worker pod
      --image string               Container image for the worker. Defaults to ghcr.io/confighubai/confighub-worker at the most recent tagged release.
      --image-pull-policy string   Image pull policy (Always, IfNotPresent, Never) (default "Always")
      --include-secret             include Secret resource in manifest
  -n, --namespace string           namespace to install worker in (default "confighub")
  -t, --provider-types string      Comma-separated list of provider types
      --service-account string     Service account name (default "confighub-worker")
      --target string              target for the unit
      --timeout string             completion timeout as a duration with units, such as 10s or 2m (default "10m0s")
      --unit string                create a unit in ConfigHub with the generated manifest
      --update-strategy string     Deployment update strategy (RollingUpdate, Recreate) (default "Recreate")
      --wait                       wait for completion (default true)
  -f, --worker-functions string    Comma-separated list of worker function names (e.g., vet-kyverno-server)

Options inherited from parent commands

      --context string   The context to use for this command
      --debug            Debug output
      --space string     space ID to perform command on

SEE ALSO