KRM Configuration Examples

FlexNet Manager Suite 2021 R1 (On-Premises)

The following brief examples illustrate setting KRM attributes in a file using the YAML language.

1. Specifying agent storage

This simple configuration uses a dynamically-provisioned storage class named default to allocate the volume for use by the Flexera Kubernetes inventory agent.
apiVersion: agents.flexera.com/v1
kind: KRM
metadata:
  name: instance
spec:
  monitor:
    beaconURL: https://beacon.example.org
    storage:
      storageClassName: default
      resources:
        requests:
          storage: 2Gi

2. Excluding some Kubernetes resources

Extending the previous simple example, here the Flexera Kubernetes inventory agent is configured to ignore:
  • All resources in the testing namespace
  • Any other resources that are labeled with staging set to true.
apiVersion: agents.flexera.com/v1
kind: KRM
metadata:
  name: instance
spec:
  monitor:
    beaconURL: https://beacon.example.org
    storage:
      storageClassName: default
      resources:
        requests:
          storage: 2Gi
    excludeNamespaces:
      - testing
    excludeLabels:
      staging: "true"

3. Special cases

In the following example:
  • A custom registry is used that requires authentication. An ImagePullSecrets value is specified that refers to an existing secret. (This uses an array list format where each array member has the leading dash, although the array here has only one member.)
  • The IBM License Service integration is enabled.
  • Collecting software inventory from container images is disabled.
  • Increased storage to be used by the Flexera Kubernetes inventory agent is on an existing PersistentVolume, selected by using a label selector.
apiVersion: agents.flexera.com/v1
kind: KRM
metadata:
  name: instance
spec:
  image:
    registry: images.example.org
  imagePullSecrets:
    - name: myregistry
  ibmLicensing:
    enable: true
  monitor:
    beaconURL: https://beacon.example.org
    storage:
      selector:
        matchLabels:
          volume: pv003
      resources:
        requests:
          storage: 3Gi
    imageInventory: false

FlexNet Manager Suite (On-Premises)

2021 R1