XL Kube Command Reference
The xl
command line tool provides a fast and straightforward method for provisioning Digital.ai Release or Deploy or Release Runner using YAML files. The YAML files can include items such as releases, pipelines, applications, infrastructure, and target environments.
The XL CLI's xl kube
command (available in XL CLI 23.3.0 or later versions)
is used for installing or upgrading Digital.ai Deploy or Release or Release Runner on Kubernetes environments.
Download and Install the XL CLI
See Install the XL CLI.
xl kube
- The
xl kube
command installs, upgrades, or cleans Digital.ai Deploy, or Release, or Release Runner on a Kubernetes environment using the Operator. - The
xl kube
command acts as an installation options reference, prompting you for values that it cannot determine on its own and providing reasonable default values for the remaining parameters. In other words, installing Digital.ai Deploy, or Release, or Release Runner can be as simple as running thexl kube install
orxl kube upgrade
commands and answering a set of questions asked by the installation options reference along the way. - This command uses the Operator blueprints at https://dist.xebialabs.com/public/xl-op-blueprints/ for installing or upgrading Digital.ai Deploy, or Release, or Release Runner.
Usage
xl kube [command] [flags]
Available Commands
Command | Description |
---|---|
check | Check if the installation of Deploy, or Release, or Release Runner was successful and collect troubleshooting information in case of errors |
clean | Remove Deploy, or Release, or Release Runner and the associated resources from a Kubernetes cluster |
images | Manage images used in by the Operator |
install | Install Deploy, or Release, or Release Runner on a Kubernetes cluster. You need to have kubectl installed and configured for the target Kubernetes cluster. |
upgrade | Upgrade an existing installation of Deploy, or Release, or Release Runner on a Kubernetes cluster. Supports upgrades of both Operator and Helm Chart installations. Running the command will generate new files in the digitalai folder. |
Flags
Flag | Description |
---|---|
-h, --help | Help for the xl kube command |
xl kube install
- Use the
xl kube install
command for fresh installation of Digital.ai Deploy, or Release, or Release Runner. - Run the
xl kube install --help
command for more information about the available flags and usage examples for this command. - The
xl kube install
command can install Digital.ai Deploy, or Release, or Release Runner by taking you through a series of questions that you must answer to set the stage for your installation. - See the installation instructions for the different cloud platform to know more about the installation questions and answers for different cloud setups.
We highly recommend you to go through the xl kube workshop to gain a comprehensive understanding on how to install or upgrade Digital.ai Deploy, or Release, or Release Runner on a kubernetes cluster and how it can benefit you.
Usage
xl kube install [flags]
Examples
-
The command to start installation of Digital.ai Deploy, or Release, or Release Runner.
xl kube install
-
The command to do the installation by answering only a few absolutely required questions.
xl kube install --quick-setup
-
The command to install Digital.ai Deploy, or Release, or Release Runner using the downloaded xl-op-blueprints (in case https://dist.xebialabs.com/ is inaccessible from your site).
xl kube install --repo ./xl-op-blueprints
-
The command to install Deploy, or Release, or Release Runner and wait for all the installed resources to be up and running. In this example, the installation times out with an error if the resources are not up and running after 5 minutes.
xl kube install --wait-for-ready 5
-
The command to install Digital.ai Deploy, or Release, or Release Runner after cleaning all the existing resources in the target namespace of the Kubernetes cluster.
xl kube install --clean-before
-
The commands to do a dry run of the installation, validate the generated installation YAML files, and then apply the files later to the cluster to create the resources.
xl kube install --dry-run
xl kube install --files 20221004-101151-
Use the
xl kube install --dry-run
command to generate the answers file, preview the installation, and if ok proceed with thexl kube install --files <ref-run-id>
to apply the generated YAML files. -
Once you run the
xl kube install --dry-run
command and answer the prompts, you can confirm the configuration as shown in the following illustration, for example. -
Once you confirm, the answers file is generated and stored in the root
digitalai
folder. -
For example, the
generated_answers_dai-release_digitalai_install-20221019-150930.yaml
file is generated in thedigitalai
folder. -
The other YAML files are generated and stored in a folder called
digitalai/.../20221004-101151/kubernetes
. -
You can also find that all the YAML apply steps were skipped as this was simply a dry run.
-
Once you verify the generated answers file, you can proceed with the
xl kube install --files
command to complete the installation. -
For example, use the command
xl kube install --files 20221004-101151
to apply the files stored in the.../20221004-101151/kubernetes
folder. -
You can also use the
xl kube install --files 20221004-101151
command if you want to repeat the installation using the existing YAML files.
-
-
The command to install Digital.ai Deploy, or Release, or Release Runner using additional logging for debugging purposes.
xl kube install --verbose
-
Here's a command that you can use to install Digital.ai Deploy, or Release, or Release Runner:
-
using the downloaded xl-op-blueprints files (
--repo
) -
using the answers file you have from previous runs (
--answers
) -
with additional logging (
--verbose
) -
skipping any prompts during installation (it will skip any questions for overridden resources too) (
--skip-prompts
)xl kube install --repo ./xl-op-blueprints --verbose --skip-prompts --answers ./answers.yaml
-
Flags
Flag | Description |
---|---|
-a, --answers string | The file containing answers for the questions. When using an answers file, new yaml files will be generated from the installation blueprints |
-C, --clean-before | Before install do clean of the resources from the cluster |
-F, --clean-force | If true, immediately remove resources from API and bypass graceful deletion. Note that immediate deletion of some resources may result in inconsistency or data loss and requires confirmation. |
-G, --clean-grace-period int | Period of time in seconds given to the resource to terminate gracefully. Ignored if negative. Set to 1 for immediate shutdown. Can only be set to 0 when --clean-force is true (force deletion). (default -1) |
-D, --dry-run | Create files only. Nothing will be applied to the Kubernetes cluster. Apply the generated files to the cluster by using the --files |
-f, --files string | Do the installation using previously generated yaml files. Use the unique part of any generated answers file in the 'digitalai' folder as the argument. For example: "--files 20220824-153907". The yaml files from in the same folder will be applied to the cluster. Use this option after customizing the generated yaml files. |
-h, --help | help for install |
-t, --log-since-time int32 | Collect Kubernetes logs for the specified time when waiting for resources or running the check command. Specify time in minutes. (default 60) |
-Q, --quick-setup | Do the installation with the minimal amount of questions, using default values where possible. |
-r, --repo string | Provide local folder or zip path or URL to the remote zip where blueprints are located. By default a default remote repository is used. Replaces the --local-repo flag. |
-S, --skip-prompts | Skip confirmation prompts |
-o, --wait-for-operator uint | Wait for availability of the Digital.ai operator that manages product installation. Specify the time to wait in minutes before timing out. |
-w, --wait-for-ready uint | Wait for product deployments and pods to be started. Specify the time to wait in minutes before timing out. |
xl kube upgrade
- Use the
xl kube upgrade
command to upgrade Digital.ai Deploy, or Release, or Release Runner to a later (or latest) version. - Run the
xl kube upgrade --help
command for more information about the available flags and usage examples for this command. - The
xl kube upgrade
command can upgrade Digital.ai Deploy, or Release, or Release Runner by taking you through a series of questions that you must answer to set the stage for your upgrade. - See the upgrade instructions for different cloud platform to know more about the upgrade questions and answers for different cloud setups.
Usage
xl kube upgrade [flags]