Provisioning Lenses


Lenses can be provisioned using Lenses CLI. Use the provision sub-command to automate setting up Lenses and use GitOps compatible workflows. It requires a YAML file which describes the configured resources.

Eligible resourses to be provisioned:

  • Lenses license
  • Connections

Find the latest list of dynamically provisioned resources.

Example of the provision sub-command:

lenses-cli provision /opts/provision.yaml

Running the lenses-cli command will override previous configurations. Use --setup-mode to check if wizard has not been completed and continue to provision only then. See more details in Is CLI provision suitable for GitOps?

Available parameters 

ParamValuesRequiredUsage
--mode=[VALUE]sidecarnoblock the process from exiting and let the process run in idle (used in when runs as sidecar)
--wait-for-lensesnowait until Lenses endpoint is responding, then start provisioning
--setup-modenocheck if wizard has not been completed and continue to provision only then

Example of the provision sub-command with additional parameters:

lenses-cli provision /opts/provision.yaml \
           --mode=sidecar \
           --setup-mode

Contents:

Provisioning Lenses
Construct provision.yaml
Is CLI provision suitable for GitOps?