Help Center> Migration Center> Tool Guide> Tool Discovery> Configuring Collector Parameters> Kubernetes Static Collector (app-discovery-k8s)
Updated on 2024-01-17 GMT+08:00

Kubernetes Static Collector (app-discovery-k8s)

It collects Ingress, service, and ConfigMap information of a Kubernetes cluster. For details about the configuration parameters, see Table 1.

Table 1 Parameters for configuring the Kubernetes static collector

Parameter

Mandatory

Configuration

output_path

No

Enter the storage path of the collection result file (app-discovery-k8s-xxx.csv). If this parameter is left blank, the storage path defaults to <Collector installation path>\output\file.

Example: C:\Edge\tools\plugins\collectors\app-discovery-collectors\python\mgc-app-discovery-collectors\app-discovery-k8s\output\file\app-discovery-k8s-xxx.csv

rules_path

No

Enter the storage path of the collection rule file (a .properties file). If this parameter is left blank, the path defaults to <Collector installation path>\config\rules.properties.

Example: C:\Edge\tools\plugins\collectors\app-discovery-collectors\python\mgc-app-discovery-collectors\app-discovery-k8s\config\rules.properties

NOTICE:

You are advised to use the default rule file. If you need to customize collection rules, modify the default rule file.

config_path

Yes

Enter the absolute path of the folder that stores the configuration files (in YAML format) of clusters to be collected.

CAUTION:

This storage path stores only YAML configuration files of clusters to be collected. Irrelevant YAML files should not be stored here.

To obtain the content of a cluster's configuration file, perform the following steps:

On a cluster node, run the following command, and copy the returned information to a YAML file.

cat ~/.kube/config
NOTICE:

Only one configuration file can be stored for a Kubernetes cluster.