Uninstalling the Lightweight Kubernetes Agent

IT Asset Management (Cloud)
If you wish to remove the Lightweight Kubernetes Inventory Agent from your cluster, there are two alternative paths: you may use the install script, or allow Kubernetes to do the removal by removing the YAML resources.
Note: Neither of these methods removes the flexera namespace, to ensure that any other resources within the namespace are not inadvertently deleted. As well, you may intend to add other Flexera components back into the namespace — for example, you may be removing a superseded version of the Lightweight Kubernetes Inventory Agent and replacing it with a later release.

To uninstall the Lightweight Kubernetes Inventory Agent:

  1. Choose your preferred method:
    • Install script: On the appropriate Linux-based device, run the install script with the ‑‑uninstall flag. The only other flags relevant to the uninstall process are:
      • --as
      • --cluster
      • --context
      • --kubeconfig.
      For information about these flags, see the latter part of Scripted Installation.
      ./install/install.sh --uninstall
      Note: The install script also attempts to uninstall the prometheus-servicemonitor extension. If the prometheus-operator is not installed in the cluster, this results in an error message, as the cluster will not have a ServiceMonitor type. In these circumstances, this error can be safely ignored.
    • kubectl: On the appropriate Linux-based device, use the kubectl delete command to remove the YAML files, after which Kubernetes automatically removes the deployment from the cluster:
      cd install
      kubectl delete -f deployment.yaml
      kubectl delete -f rbac.yaml
  2. Optionally, remove the flexera namespace (if you will not be re-using that in future):
    kubectl delete namespace flexera

IT Asset Management (Cloud)

Current