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 FlexNet Manager Suite. As defined in the ancestry.yaml file, this:- Creates a new
ClusterRolenamedflexera-lwk-ancestry - Uses a
ClusterRoleBindingto bind that role to the service account running the Lightweight Kubernetes Inventory Agent.Tip: The service account calledlwkis created in theflexeranamespace by either installation method (see the list of resources created in the cluster given in Downloading the Lightweight Kubernetes Agent).
getverb) additional resource types that are known to be part of the ownership hierarchy of aPod, such as aReplicaSetor 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--metricsflag is set, the Lightweight Kubernetes Inventory Agent supports exposing Prometheus metrics using an HTTP endpoint. You can create aServiceto expose the metrics endpoint widely within the cluster, or outside of the cluster. Theprometheus-serviceextension, defined in the prometheus-service.yaml file, creates thisServiceusing values that are valid for the default configuration of the Lightweight Kubernetes Inventory Agent. If the--metricsflag is not set, this extension is ignored.Tip: To set the--metricsflag, 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 theargsattribute 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--metricsflag is set and theprometheus-serviceextension is configured), theprometheus-servicemonitorextension creates aServiceMonitor, the custom resource type used byprometheus-operatorto automatically configure Prometheus to scrape a metrics endpoint. ThisServiceMonitorallows Prometheus to automatically begin scraping metrics for the Lightweight Kubernetes Inventory Agent.Important: Use only in conjunction with theprometheus-serviceextension.
FlexNet Manager Suite (On-Premises)
2024 R1