Some users may be experiencing issues when trying to access customer resources like the Case Portal or the Product Licensing Center. Our team is aware of the issue and is working to resolve it. Click here for more information.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Flexera Kubernetes Agent

On https://docs.flexera.com/flexeraone/EN/WhatsNew/FeatureList/RN-chg-K8sUpdates.htm fifth point stated:

You can now manually supply to the Flexera Kubernetes inventory agent a name for the cluster, giving you better control than automatic discovery of the cluster name (because Kubernetes does not have a standard way of storing the cluster name). 

I'm using krm-1.6.4 from  flexera-krm-operator-1.8.4.tar of "FlexNet Manager Suite Installer 2023 R2.zip2" with container image 1.6.9 (due fixes of vulnerabilities).

I start the flexera kubernetes agent with: 

./krm-1.6.4/install.sh --registry $(REGISTERY) --version $(FLEXERA_KRM_VERSION) --cluster-name $(ENVIRONMENT)

In the flexera-controller pod I see:

 

krm 2024-02-29T12:46:21.43928544Z     INFO -- start: version 1.6.9
krm 2024-02-29T12:46:23.200098097Z    INFO -- main: connecting
krm 2024-02-29T12:46:23.213086862Z WARNING -- clustername: resorting to using the clusterid

 

How to set manually the kubernetes cluster name?

(1) Solution

To answer my own question:

Add clustername: <cluster> under de spec: definition in the yaml for the kubernetes agent monitor

apiVersion: agents.flexera.com/v1
kind: KRM
metadata:
  name: flexera
spec:
  clusterName: testing
  monitor:
    beaconURL: <obscured>
    storage:
        resources:
          requests:
            storage: 5Gi
        storageClassName: <obscured>
    configPatch:
      name: agent-config
    tlsFiles:
      secret:
        secretName: cacert
  logLevel: info
  image:
    registry: <obscured>

 Found it in : flexera/krm-1.6.4/config/crd/agents.flexera.com_krms.yaml

View solution in original post

(2) Replies

To answer my own question:

Add clustername: <cluster> under de spec: definition in the yaml for the kubernetes agent monitor

apiVersion: agents.flexera.com/v1
kind: KRM
metadata:
  name: flexera
spec:
  clusterName: testing
  monitor:
    beaconURL: <obscured>
    storage:
        resources:
          requests:
            storage: 5Gi
        storageClassName: <obscured>
    configPatch:
      name: agent-config
    tlsFiles:
      secret:
        secretName: cacert
  logLevel: info
  image:
    registry: <obscured>

 Found it in : flexera/krm-1.6.4/config/crd/agents.flexera.com_krms.yaml

krm 2024-02-29T14:37:06.849412708Z    INFO -- start: version 1.6.9
krm 2024-02-29T14:37:07.68883166Z     INFO -- main: connecting
krm 2024-02-29T14:37:07.695522336Z    INFO -- main: cluster: name=testing, id=1153b425-f539-4a4d-b159-187c8ed1988e, version=v1.24.14+rke2r1