Manual Installation
To manually install the Lightweight Kubernetes Inventory Agent:
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.)
Extensions
ancestry
— For future expansion, and not currently supported in the web interface of IT Asset Management. As defined in the ancestry.yaml file, this:- Creates a new
ClusterRole
namedflexera-lwk-ancestry
- Uses a
ClusterRoleBinding
to bind that role to the service account running the Lightweight Kubernetes Inventory Agent.Tip: The service account calledlwk
is created in theflexera
namespace by either installation method (see the list of resources created in the cluster given in Downloading the Lightweight Kubernetes Agent).
get
verb) additional resource types that are known to be part of the ownership hierarchy of aPod
, such as aReplicaSet
or aDeployment
, and to collect identifying information (name
,namespace
,UID
,type
.) It is not recommended that you enable this extension until there is support for displaying ancestry within the web interface.- Creates a new
prometheus-service
— When its--metrics
flag is set, the Lightweight Kubernetes Inventory Agent supports exposing Prometheus metrics using an HTTP endpoint. You can create aService
to expose the metrics endpoint widely within the cluster, or outside of the cluster. Theprometheus-service
extension, defined in the prometheus-service.yaml file, creates thisService
using values that are valid for the default configuration of the Lightweight Kubernetes Inventory Agent. If the--metrics
flag is not set, this extension is ignored.Tip: To set the--metrics
flag, it must be included when invoking the install script for the Lightweight Kubernetes Inventory Agent (see example below). The install script appends the flag to theargs
attribute of the container for use by the Lightweight Kubernetes Inventory Agent.prometheus-servicemonitor
— When Prometheus is installed in the cluster usingprometheus-operator
(see https://github.com/prometheus-operator/prometheus-operator), and Prometheus metrics are enabled on the Lightweight Kubernetes Inventory Agent (that is, the--metrics
flag is set and theprometheus-service
extension is configured), theprometheus-servicemonitor
extension creates aServiceMonitor
, the custom resource type used byprometheus-operator
to automatically configure Prometheus to scrape a metrics endpoint. ThisServiceMonitor
allows Prometheus to automatically begin scraping metrics for the Lightweight Kubernetes Inventory Agent.Important: Use only in conjunction with theprometheus-service
extension.
IT Asset Management (Cloud)
Current