IT Asset Management
(Cloud)
Both the Flexera Kubernetes Inventory Agent and the Lightweight Kubernetes Inventory Agent are available in a
common tar archive.
The Lightweight Kubernetes Inventory Agent is deployed as a (Kubernetes resource)
Deployment
within the flexera
namespace. The
Pods run under a specific service account within that namespace, to which a specific
custom cluster role is bound. The cluster role defines what actions the Lightweight Kubernetes Inventory Agent is allowed to perform.
To download and prepare the Lightweight Kubernetes Inventory Agent:
-
Log on to a device that:
- Runs a supported version of Linux
- Has a web browser with network access to the web application server
for IT Asset Management, where your account must have operator
privileges to see the appropriate page
- Has a running instance of Docker
- Either hosts an OCI container registry, or has network access to an OCI
container registry, that is available to your Kubernetes cluster.
Tip: This process is simplified if you log
in to this device using an account that has administrative privileges
for your OCI container registry (otherwise you need to hand off between
separate accounts during the process); and also for the Kubernetes
cluster. During installation, the account requires privileges to create
the following resource types:
Namespace
ServiceAccount
ClusterRole
ClusterRoleBinding
Deployment
.
-
Go to the Inventory Settings page.
The Inventory Settings
page displays.
-
Expand the Inventory agent for download section.
-
Click Download Flexera Kubernetes Inventory Agent and save the downloaded archive file to a suitable
location.
Tip: Despite the name on the link, the downloaded archive
also includes the Lightweight Kubernetes Inventory Agent.
-
Extract the folders from the downloaded archive, for example with the following
command line:
tar xzf flexera-krm-operator.tar.gz
-
Move into the directory that was extracted from the
archive:
Replace the placeholder
x.y.z with the version number of
the first extracted folder, and replace
a.b.c with the
version number included for the
lwk folder for the
Lightweight Kubernetes Inventory Agent.
Tip: These version numbers may not
be the same. It may be easier to do this in two steps, where you can
check the version number in the folder name.
cd flexera-krm-operator-x.y.z
cd lwk-a.b.c
This last folder contains the exported container image for the Lightweight Kubernetes Inventory Agent (as an exported tar archive, named
flexera-lwk-a.b.c.tar
where
a.b.c is the version of the Lightweight Kubernetes Inventory Agent),
the YAML resources that define the application within Kubernetes, and an
(optional) installation shell script.
As the Lightweight Kubernetes Inventory Agent container image is not yet available as a
Docker registry, a private registry available to the cluster must be used.
-
Import the extracted image into Docker:
Replace a.b.c with the version number of the tar archive
in the folder:
docker load < flexera-lwk-a.b.c.tar
-
Re-tag the image for your registry.
Tip: If you have multiple container registries, complete the
process for each one, and then circle back to repeat the process from this
point for the next registry.
In these examples, the container registry
is shown as
registry.example.org, which you replace with the
URL of your own registry. Also replace the placeholder
a.b.c
with the version number of the
Lightweight Kubernetes Inventory Agent.
Important: The portion of the image name flexera/lwk
must not be
changed. Simply prepend your registry URL in front of this string as
shown.
docker tag flexera/lwk:a.b.c registry.example.org/flexera/lwk:a.b.c
-
Ensure that you are logged into your OCI container registry, using an account
with administrative privileges.
-
Push the image for Lightweight Kubernetes Inventory Agent to your registry:
docker push registry.example.org/flexera/lwk:a.b.c
-
Inspect the YAML documents (supplied in the install
directory) that are applied during installation and modify the Deployment.
All of the RBAC resources that the Lightweight Kubernetes Inventory Agent uses are contained
within the rbac.yaml file. You may also want to inspect the
default deployment.yaml file (particularly if you plan to
complete a manual installation process).
-
Choose between:
- Scripted installation — This can automate the configuration of
YAML resources without manual editing. Allows previewing (and optionally
saving) the configuration before applying it. Requires the
kubectl tool present on your working device when
applying the resources to the cluster. For details, see Scripted Installation.
- Manual installation — Requires that you manually edit the
deployment.yaml file, and then apply all required
resources to the cluster (also using the kubectl tool).
For details, see Manual Installation.
Whichever process you choose, the installation creates the following resources in the
cluster.
Namespace
flexeraapiVersion: v1
kind: Namespace
metadata:
name: flexera
ServiceAccount
flexera/lwkapiVersion: v1
kind: ServiceAccount
metadata:
name: lwk
namespace: flexera
ClusterRole
flexera-lwkapiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: flexera-lwk
ClusterRoleBinding
flexera-lwkapiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: flexera-lwk
Deployment
flexera/lwkapiVersion: apps/v1
kind: Deployment
metadata:
name: lwk
namespace: flexera
IT Asset Management (Cloud)
Current