Scripted Installation
--help
flag.
./install/install.sh --help
More information about
available flags is available below, after the procedure.To use the installation script:
Very shortly, Kubernetes instantiates your container, and the Lightweight Kubernetes Inventory Agent
immediately begins gathering inventory about the Node
,
Namespace
, and Pod
resources in the cluster.
By default, about 5 minutes later, the Lightweight Kubernetes Inventory Agent uploads the result to
its nominated inventory beacon, by default to the path
%CommonAppData%\Flexera Software\Incoming\Inventories
(notice that files do not stay long in this folder, but are uploaded to the parent
device in the hierarchy of inventory beacons, or to the central application server, as appropriate; but perhaps the last modified time-stamp on
that folder gives some indication of work in progress). The Lightweight Kubernetes Inventory Agent
then waits for a default 24 hours before repeating the process. (Modify these
default cycle timings with the --inventory-backoff
and
--inventory-interval
options, as described in Options for the Lightweight Kubernetes Agent.)
Flags for the install script
- Flags that are directly handled by the script itself, either controlling the installation process, or causing the YAML resources to be modified.
- Any flags that are not recognized by the install script are passed through directly to the Lightweight Kubernetes Inventory Agent, or in selected cases to the kubectl tool.
|
Optional, used only if the kubectl tool has not been correctly configured for the appropriate cluster. This flag is passed directly through to kubectl, so refer to its documentation online for details. |
|
Required by the Lightweight Kubernetes Inventory Agent, and so is mandatory either
for the install script, or for one of these environment
variables:
When a valid URL is obtained by any of the three possible methods,
the install script validates that an inventory beacon has been
provided, and then appends the value to the Example:
|
|
Optional, used only if the kubectl tool has not been correctly configured for the appropriate cluster. This flag is passed directly through to kubectl, so refer to its documentation online for details. |
|
Optional, use if you want to manually specify a name for the cluster where the Lightweight Kubernetes Inventory Agent is to operate. Because Kubernetes does not have a standard way to store names for its clusters, you may find that a manually-specified name is more meaningful. |
|
Optional, used only if the kubectl tool has not been correctly configured for the appropriate cluster. This flag and its value is added to the kubectl commands that the install script invokes, so refer to its documentation online for details. |
|
Accepts a comma-separated list (without spaces) of extensions that
should be installed along with the Lightweight Kubernetes Inventory Agent.
Extensions support optional features that need additional cluster
permissions, or leverage third-party software that may (or may not)
be installed in the cluster. They are defined by
.yaml files found in the
install/extensions subdirectory of the
downloaded archive. Available extensions are:
Example: (flags have been wrapped onto separate lines for
presentation)
|
|
Must be used alone on the command line for the install script. Prints usage information to the screen. Example:
|
|
Optional, used only if the kubectl tool has not been correctly configured for the appropriate cluster. This flag is passed directly through to kubectl, so refer to its documentation online for details. |
|
Specify the Docker image registry to which the container image was
pushed (see Downloading the Lightweight Kubernetes Agent). The install script
injects the value of this flag into the
image
attribute of the container.Note: Do not use this flag if the
Deployment in the
deployment.yaml file has been edited to
add the registry. This flag is available as an alternative, not
a duplicate.Example:
|
|
Redirects the YAML resource so that it is not applied to the cluster, and is instead printed to the screen. You may optionally add shell redirection to save the configured result to a file for saving or sharing. Example: (all on one
line)
|
|
Not relevant to the installation process, obviously. For details, see Uninstalling the Lightweight Kubernetes Agent. |
|
It is best practice not to use this flag. The version of the Lightweight Kubernetes Inventory Agent is set in the
image tag for the
Deployment resource in the
deployment.yaml file. In rare cases, you
can specify a different version of the Lightweight Kubernetes Inventory Agent,
overriding the setting in the Deployment resource;
but best practice, if a different version of the Lightweight Kubernetes Inventory Agent should be installed, is to download that version
and use its install script instead. Tip: It is not
possible to change the standard image name,
flexera/lwk , using the install
script.Example:
|
IT Asset Management (Cloud)
Current