ArlonCTL

Arlonctl is a command line utility that enables you to operate with the Arlon profile engine built into PMK. For context around Arlon capabilities built into PMK, please first read Profile Engine with Arlon

Arlonctl extends the open source Arlon CLI with key additional features context management, using the PMK environment credentials provided by the PMK administrator.

Installation

You can download the arlonctl binary using the following command:

Bash
Copy

Operating Systems Supported :

  • Linux (amd64)
  • MacOS (amd64,arm64)

Note: arlonctl command may run into errors when the KUBECONFIG environment variable is set to point to some Kubernetes cluster other than the Arlon management cluster (Platform9 DU). The arlonctl command internally uses the KUBECONFIG environment variable (and sets it to point to the Platform9 management plane DU's kubeconfig. The file resides in the location ~/.config/arlon/context.config). If the user has set this variable to a different cluster's kubeconfig file, arlonctl will error out. As a workaround, unset the KUBECONFIG environment variable.

List of commands

Bash
Copy

verify

This command is used to verify if all the optional and mandatory tools/requirements to run arlonctl are present.

(Mandatory Requirements : kubectl Optional Requirements: argocd CLI, git)

Example:

Bash
Copy

context

This command allows user to create and switch between two or more DUs / contexts. It makes it easy for the user to manage multiple DUs. All the contexts which have been added by the user are stored in a contexts.json file which is at ~/.config/arlon .Sensitive credentials such as passwords are stored in the JSON file after being encrypted. The kubeconfig of the current DU as well is stored in the same location with the name context.config. The logs for all the arlonctl commands are stored in ~/.config/arlon/logs.txt

Bash
Copy

create

This command creates a new context, which the user can then work with. The current context will be set to the newly created context using this command. To create a new context, the user needs to add their DU-FQDN, their username and password.

Usage:

Bash
Copy

Example:

Bash
Copy

switch

This command allows the user to switch between multiple contexts.

Example:

Bash
Copy

list

Lists the contexts present. It also mentions the current context of the user.

Example:

Bash
Copy

delete

Deletes the context provided by the user.

Example:

Bash
Copy

refresh

Refreshes the x-auth token of the DU and the argocd token after it expires.

Example:

Bash
Copy

cloud provider

This command allows user to list the cloud providers present in the DU. Example:

Bash
Copy

bundle

This command is used to manage the bundles which together form a profile which is then used to deploy a cluster. This command is inherited from the arlon OSS CLI. the available commands in arlonctl bundle are :

Bash
Copy

profile

arlonctl profile is used to create profiles which in turn will be used to deploy the clusters in following steps. This is a command which has been inherited from arlon CLI.

Bash
Copy

clusterspec

arlonctl clusterspec is used to create the specs with which the user wants to deploy the cluster. User can use the cluster specifications which they created while deploying the cluster. This command has been inherited from Arlon CLI.

Bash
Copy

cluster

arlonctl cluster command is used to manage the clusters. We can deploy the clusters using the available command in the arlonctl cluster. This command as well is inherited from arlon OSS CLI and works same as in Arlon CLI

Bash
Copy
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard
  Last updated