Flexera Kubernetes Inventory Agent Configuration Examples
FlexNet Manager Suite
        2023 R1
        (On-Premises) 
        The following brief examples illustrate setting resource attributes for the Flexera Kubernetes inventory agent 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: 2Gi2. Excluding some Kubernetes resources
Extending the previous simple example, here the Flexera Kubernetes inventory agent is
                configured to ignore:
        - All resources in the testingnamespace
- Any other resources that are labeled with stagingset totrue.
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 registryis used that requires authentication. AnImagePullSecretsvalue 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 labelselector.
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: falseFlexNet Manager Suite (On-Premises)
2023 R1