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:
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?
‎Feb 29, 2024 07:27 AM
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
‎Feb 29, 2024 09:07 AM
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
‎Feb 29, 2024 09:07 AM
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
‎Feb 29, 2024 09:08 AM